struct2table
Convert a struct array to a table.
Syntax
Section titled “Syntax”T = struct2table(s)T = struct2table(s, 'VariableNames', {'name1', ...})Description
Section titled “Description”Each field of s becomes a column variable in the resulting table. For struct arrays, each element becomes one row.
Examples
Section titled “Examples”s(1).id = 1; s(1).val = 3.5;s(2).id = 2; s(2).val = 4.7;struct2table(s)