struct2table
Creates a table from struct t.
Syntax
struct2table(t)
Inputs
- t
- Type: struct
Outputs
- R
- Resulting table.
Example
Simple struct2table
example:
t = struct('Area',[31700, 22300, 23000, 9910, 7340],'Lake',{{'Superior','Michigan','Huron','Erie','Ontario'}},'Volume',[2900, 1180, 850, 116, 393])
R = struct2table(t)
R =
Area Lake Volume
____ ____ ______
31700 'Superior' 2900
22300 'Michigan' 1180
23000 'Huron' 850
9910 'Erie' 116
7340 'Ontario' 393