struct2table
Convert a structure array into a tabular format.
Syntax
T = struct2table(S)
Input argument
S - structure: Array provided as a structure.
Output argument
T - A table object.
Description
T = struct2table(S) transforms a structure array into a table, where each field of the input structure is represented as a variable in the resulting table.
If the input is a scalar structure containing 𝑛 fields, each with 𝑚 rows, the output will be an 𝑚×𝑛 table.
If the input is either an 𝑚×1 or a 1×𝑚 structure array with 𝑛 fields, the output will also be an 𝑚×𝑛 table.
Examples
See also
History
Version
Description
1.8.0
initial version
Author
Allan CORNET
Last updated