How to transform struct to array?
28 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kiryl Zhaliazka
am 23 Mär. 2022
Beantwortet: Voss
am 23 Mär. 2022
I have struct with 96 fields, each field contein 1 number, how I can make array that will be contain one column and 96 rows, each row is a number from each field. Thank you.
0 Kommentare
Akzeptierte Antwort
Voss
am 23 Mär. 2022
S = struct('field_1',1,'field_2',2,'field_3',3)
A = struct2array(S).'
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!