#### 8.2.54.49 table.table2struct ¶

Method: `s =` table2struct `(obj)` ¶
Method: `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.