Table Of Contents

struct

Version:
    Last Modified: January 9, 2017

    Creates a structure with fields and assigns values to these fields.

    Syntax

    S = struct(fieldname1, fieldvalue1, fieldname2, fieldvalue2, ...)

    Inputs

    fieldname1

    Name of the first field of a structure. fieldname1 is a string.

    fieldvalue1

    Value of the first field of a structure.

    fieldname2

    Name of the second field of a structure. fieldname2 is a string.

    fieldvalue2

    Value of the second field of a structure.

    ...

    Further field names and field parameters of a structure.

    Outputs

    s

    Structure.

    S = struct('A',1,'B',2)
    S = struct('B',1:3,'D',5.2)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics