How can I convert struct to mat

26 Ansichten (letzte 30 Tage)
Elsayed Alhulaifi
Elsayed Alhulaifi am 8 Mai 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 Kommentare
KL
KL am 8 Mai 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 am 9 Mai 2017
Structure array to a matrix

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 9 Mai 2017
You might be able to use
cell2mat( struct2cell( YourStructure ) )
but a lot depends on what is inside your structure.

Weitere Antworten (0)

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by