MATLAB: Question about structures in Matlab

structures

Can you have a structure within a structure in Matlab?

Best Answer

Yes, that's possible:
s = struct('field1', 45, 'field2', 'Nothing')
s.field3 = struct('subfield1', 232)
And you can access:
s.field3.subfield1