Table Of Contents

remove_field

Version:
    Last Modified: December 12, 2016

    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: DAQExpress does not support FPGA devices


    Recently Viewed Topics