How to add variable fields in struct?
15 views (last 30 days)
Show older comments
Hello all,
So i have a struct like this:
structExampe.(field(n))=struct('a', a, 'b', b);
and I want to add field in the same struct:
structExampe.(field(n))=struct('c', c);
and have all 3 variable inside struct (a,b,c)
How I should do this??
Thanks for the help!
0 Comments
Accepted Answer
More Answers (0)
See Also
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!