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

3 visualizzazioni (ultimi 30 giorni)
I am interested to put an object into a structure field like:
struct.field=object;
is it possible?

Risposta accettata

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

Più risposte (0)

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!

Translated by