a = struct2array(s)
| Parameter | Description |
|---|---|
| s | a structure whose field values can be concatenated. |
| Parameter | Description |
|---|---|
| a | the horizontal concatenation of the field values. |
a = struct2array(s) returns the horizontal concatenation of the field values of s. The field values must have compatible sizes and types.
s.a = 1;
s.b = [2 3];
struct2array(s)
| Version | Description |
|---|---|
| 2.0.0 | initial version |