Is it possible to save an object to a structure field?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Zeynab Mousavikhamene
am 27 Apr. 2020
Bearbeitet: Ameer Hamza
am 27 Apr. 2020
I am interested to put an object into a structure field like:
struct.field=object;
is it possible?
1 Kommentar
Akzeptierte Antwort
Ameer Hamza
am 27 Apr. 2020
Bearbeitet: Ameer Hamza
am 27 Apr. 2020
Definitely possible
>> fig = figure;
>> myStruct.a = fig
myStruct =
struct with fields:
a: [1×1 Figure]
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!