MATLAB: Is it possible to save an object to a structure field

fieldobjectstructure

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

Best Answer

Definitely possible
>> fig = figure;
>> myStruct.a = fig
myStruct =
struct with fields:
a: [1×1 Figure]