Fields in a Structure
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Preetam Pal
am 16 Aug. 2015
Beantwortet: Shivam
am 30 Jul. 2022
How can I fetch the list of fields in a structure? Regards, Preetam
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Shivam
am 30 Jul. 2022
You can fetch the fields of a structure S using fieldname this way.
fields = fieldnames(S)
It returns the field names of the structure array S in a cell array.
0 Kommentare
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!