Skip to Main Content Skip to Search
Product Documentation

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 | getfield | isfield | orderfields | setfield

How To

  


» Learn more
» Download free kit
» Get trial software

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