Loops for struct data
Show older comments
Hi all,
I have a problem.I want to read all the information of a struct data while I don't know any information about it( for example how much layers in it and the size of each layer). I think it is possible to use while and for loops to read all data in it but I don't know how to arrange the code. Anyone can help me?
Thanks in advance
Answers (1)
Shwetank Shrey
on 24 Jun 2019
0 votes
You can use fieldnames to get information about the field names in a structure.
1 Comment
Tonghui Zhang
on 24 Jun 2019
Categories
Find more on Loops and Conditional Statements 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!