suppose i have an cell array code and output of this cell array is below
code= b=cat(2,indx,nonzeros(a)); c{i}=b; output= c = [4x3 double] [3x3 double] [2x3 double] [1x3 double]
>> c{1}
ans =
1.0000 2.0000 2.0251 1.0000 3.0000 2.4151 1.0000 4.0000 3.6898 1.0000 5.0000 3.7661
>> c{2}
ans =
2.0000 3.0000 4.4384 2.0000 4.0000 3.3449 2.0000 5.0000 2.0825
>> c{3}
ans =
3.0000 4.0000 5.1293 3.0000 5.0000 6.0171c{4}
ans =
4.0000 5.0000 2.5647
how to use all data of cell array in the single matrix
Best Answer