numfields
NUMFIELDS Number of fields in a structure (Octave name). N = NUMFIELDS(S) returns the number of fields of structure S. Equivalent to NUMEL(FIELDNAMES(S)). MATLAB has no public numfields; portable code should use NUMEL(FIELDNAMES(S)). Unmarked MATLAB-mode scripts that never call this name are unaffected. See also FIELDNAMES, ISFIELD, STRUCT.