struct2cell
struct2cell
(values, fields)=struct2cell(a)
Inputs
a A struct array.
Outputs
values A cell array whose elements are the entries in the input.
fields A string array of the names of the fields of the input.


Example
>>a.x=2
>>a.y=rand(2,3)
>>a.z="cellvalue"
>>(u,v)=struct2cell(a)
>>u
[2]
[2X3 Real Matrix]
cellvalue
>>v
x
y
z