How can I convert struct to mat

25 views (last 30 days)
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
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.
Elsayed Alhulaifi
Elsayed Alhulaifi on 9 May 2017
Structure array to a matrix

Sign in to comment.

Accepted Answer

Walter Roberson
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.

More Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!