Getting structure content using strings
Show older comments
I have kt containing data type "strings", one of them is "grad"i.e kt(1,1)=grad which is a string. I am also trying to get the content of the structure(Data.edata.grad) in my data using the string data set by doing Data.edata.kt(1,1) but i am getting the error kt(1,1) is not an existing field. How can i convert a string to a structure or how can i use my string data set to get the structures?
3 Comments
James Tursa
on 10 Aug 2018
Show us the actual code, not your description of it. And copy & paste the entire error message for us to see.
samuel okeleye
on 11 Aug 2018
Edited: Walter Roberson
on 11 Aug 2018
samuel okeleye
on 11 Aug 2018
Accepted Answer
More Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!