MATLAB Function Reference
  Go to function:
    Search    Help Desk 
rmfield    See Also

Remove structure fields

Syntax

Description

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

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

See Also

fields      Field names of a structure

getfield    Get field of structure array

setfield    Set field of structure array

strvcat     Vertical concatenation of strings



[ Previous | Help Desk | Next ]