Table Of Contents

is_struct

Version:
    Last Modified: January 9, 2017

    Determines whether a variable is a structure. A structure can be a scalar structure or a structure array.

    Syntax

    b = is_struct(s)
    Legacy name: isstruct

    Inputs

    s

    Name of the variable you want to check as to whether it is a structure.

    Outputs

    b

    1 (True) if s is a structure. Otherwise the function returns 0 (False). b is a Boolean.

    point.x = 3.0;
    point.y = 4.0;
    point.color = 'blue';
    B = is_struct(point)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics