s = rmfield(st, field)
| Parameter | Description |
|---|---|
| st | a structure. |
| field | a string, cell of strings, or char. |
| Parameter | Description |
|---|---|
| s | a structure without field. |
s = rmfield(st, field) removes the specified field from structure array.
example.a = 1
example.b = 'nelson'
example.c = []
rmfield(example, 'b')
| Version | Description |
|---|---|
| 1.0.0 | initial version |