How can I convert struct to mat
25 views (last 30 days)
Show older comments
Elsayed Alhulaifi
on 8 May 2017
Answered: Walter Roberson
on 9 May 2017
Dear sir
I'm writing to get some help. I want to convert from struct to mat... to substitute by its values in other matrix
2 Comments
KL
on 8 May 2017
by struct to mat do you mean structure array to a matrix? If then all the fields should only be numeric. Or do you mean cell array? mat something totally different.
Accepted Answer
Walter Roberson
on 9 May 2017
You might be able to use
cell2mat( struct2cell( YourStructure ) )
but a lot depends on what is inside your structure.
0 Comments
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!