Effacer les filtres
Effacer les filtres

Is it possible to save an object to a structure field?

4 vues (au cours des 30 derniers jours)
Zeynab Mousavikhamene
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
Rik
Rik le 27 Avr 2020
Why wouldn't it be? And why didn't you just try it?

Connectez-vous pour commenter.

Réponse acceptée

Ameer Hamza
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]

Plus de réponses (0)

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!

Translated by