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

I am interested to put an object into a structure field like:
struct.field=object;
is it possible?

 Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by