How can I convert struct to mat

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

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.
Structure array to a matrix

Sign in to comment.

 Accepted Answer

You might be able to use
cell2mat( struct2cell( YourStructure ) )
but a lot depends on what is inside your structure.

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!