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

3 Ansichten (letzte 30 Tage)
Zeynab Mousavikhamene
Zeynab Mousavikhamene am 27 Apr. 2020
Bearbeitet: Ameer Hamza am 27 Apr. 2020
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

Mehr zu Structures finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by