Section: Inspection Functions
x = fieldnames(y)
where y is a structure array of object array. The result is a cell array, with one entry per field in y.
y
--> y.foo = 3; y.goo = 'hello'; --> x = fieldnames(y) x = [foo] [goo]