erase
Remove a field from a structure object
Syntax
y = erase ( obj,field_name )
y = obj.erase ( field_name )
Inputs
| Argument | Type | Description | Unit |
|---|---|---|---|
obj | STRUCT | A structure object | n/a |
field_name | text | The string of the field | - |
Outputs / Return Value
y:yis the structure object
Examples
v=[]; v.fs=22050; v.ex = "something to get rid of";// A structure object is defined. fields: fs and ex
v.erase("ex") // the field "ex" is removed.
Review Status
- Legacy parameter naming does not exactly match current engine metadata and should be reviewed manually.