s =
table2struct (obj)
¶s =
table2struct (…, 'ToScalar'
, trueOrFalse)
¶Converts obj to a scalar structure or structure array.
Row names are not included in the output struct. To include them, you must add them manually: s = table2struct (tbl, ’ToScalar’, true); s.RowNames = tbl.Properties.RowNames;
Returns a scalar struct or struct array, depending on the value of the
ToScalar
option.