FUNCTION REFERENCE
fieldnames
List a struct's field names.
List a struct's field names.
Syntax
fieldnames(S)Returns a column cell array of character names in field order. Works on scalar, array and empty structs. Other input classes and extra arguments are rejected.
Example
s=struct('a',1,'b','x'); names=fieldnames(s); disp(names{2}) % bDifferences from MATLAB: Cell display differs.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.