Is it possible to save an object to a structure field?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Zeynab Mousavikhamene
le 27 Avr 2020
Modifié(e) : Ameer Hamza
le 27 Avr 2020
I am interested to put an object into a structure field like:
struct.field=object;
is it possible?
1 commentaire
Réponse acceptée
Ameer Hamza
le 27 Avr 2020
Modifié(e) : Ameer Hamza
le 27 Avr 2020
Definitely possible
>> fig = figure;
>> myStruct.a = fig
myStruct =
struct with fields:
a: [1×1 Figure]
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Structures dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!