struct

Version:

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

Syntax

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

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.

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