struct2array
Concatenate structure field values into an array.
📝Syntax
a = struct2array(s)
📥Input Arguments
Parameter Description
s a structure whose field values can be concatenated.
📤Output Arguments
Parameter Description
a the horizontal concatenation of the field values.
📄Description

a = struct2array(s) returns the horizontal concatenation of the field values of s. The field values must have compatible sizes and types.

💡Examples
s.a = 1;
s.b = [2 3];
struct2array(s)
🔗See Also
struct2cellcell2mat
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub