Products & Services Industries Academia Support User Community Company

Learn more about MATLAB   

rmfield - Remove fields from structure

Syntax

s = rmfield(s, 'fieldname')
s = rmfield(s, fields)

Description

s = rmfield(s, 'fieldname') removes the specified field from the structure array s.

s = rmfield(s, fields) removes more than one field at a time. fields is a character array of field names or cell array of strings.

See Also

fieldnames, setfield, getfield, isfield, orderfields, dynamic field names

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS