erase

Remove a field from a structure object

Syntax

y = erase ( obj,field_name )
y = obj.erase ( field_name )

Inputs

ArgumentTypeDescriptionUnit
objSTRUCTA structure objectn/a
field_nametextThe string of the field-

Outputs / Return Value

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