Table Of Contents

remove_field

Version:
Last Modified: January 9, 2017

Removes a field from a structure.

Syntax

s2 = remove_field(s, fieldname)
Legacy name: rmfield

Inputs

s

Structure or array of structures.

fieldname

Name of the field you want to remove from the structure. fieldname is a string.

Outputs

s2

Structure with the removed field.

point.x = 3.0;
point.y = 4.0;
point.color = 'blue';
S2 = remove_field(point, 'color')

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported


Recently Viewed Topics