From: Tariq Hassan on 26 Jun 2010 12:30 Hi if you to convert field by field, for example field (a), you can use A = cell2mat({data(:,:).a}) However, if you like to convert the whole values regardless the name of field use Q=A(1) J=struct2cell(Q) M=cell2mat(J) This will give you column vector of the whole value exist in A(1) . Regards
From: Matt J on 26 Jun 2010 12:46 "Tariq Hassan" <tariqahh1976(a)yahoo.com> wrote in message <i059v1$ll6$1(a)fred.mathworks.com>... > Hi > if you to convert field by field, for example field (a), you can use > > A = cell2mat({data(:,:).a}) ============= You can, but it's faster to do A=[data(:,:).a];
|
Pages: 1 Prev: Download 100% Free Flash Templates Next: how to find the length and diameter |