Is it possible to save an object to a structure field?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Zeynab Mousavikhamene
il 27 Apr 2020
Modificato: Ameer Hamza
il 27 Apr 2020
I am interested to put an object into a structure field like:
struct.field=object;
is it possible?
1 Commento
Risposta accettata
Ameer Hamza
il 27 Apr 2020
Modificato: Ameer Hamza
il 27 Apr 2020
Definitely possible
>> fig = figure;
>> myStruct.a = fig
myStruct =
struct with fields:
a: [1×1 Figure]
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Structures in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!