FUNCTION REFERENCE
rmfield
Remove fields from a struct.
Remove fields from a struct.
Syntax
T = rmfield(S, name)Syntax
T = rmfield(S, names)Accepts a character name or a cell array of names. Removes those fields from every element, preserving the struct shape and remaining field order. S is unchanged unless the result is assigned back to S. A missing field raises an error.
Example
s=struct('a',1,'b','x'); t=rmfield(s,'a'); t.b % 'x'Differences from MATLAB: none known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.