rmfield
Remove fields from structure.
📝Syntax
s = rmfield(st, field)
📥Input Arguments
Parameter Description
st a structure.
field a string, cell of strings, or char.
📤Output Arguments
Parameter Description
s a structure without field.
📄Description

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

💡Examples
example.a = 1
example.b = 'nelson'
example.c = []
rmfield(example, 'b')
🔗See Also
structfieldnames
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub