Store cells into Matrix
3 views (last 30 days)
Hi, In below mentioned code i am trying to pair up all the elements in two matrices and trying to store in one matix.While storing overnested cells into variables matrix it does not store in proper order.Please help me in solving this . Thanks, Sita
p = haltonset(1) %'Skip',1e3,'Leap',1e2);
i2=1; j2=3; x1s(:,:)=p(i1:j1,:); x2s(:,:)=p(i2:j2,:); x1vals=x1s x2vals=x2s
overnested = arrayfun(@(x,y)[x y],ii,jj,'un',0)
David Sanchez on 13 May 2013
check out for that 3D array you call variables, Is it useful for anything? This same question was answered on Friday 10th.
Yao Li on 13 May 2013
Make sure each element in the cell variable has the same dimention. Assuming raw is the cell variable (1x2),x is the destination matrix, For example,
Then the 2 elements in raw are stored in two columns of the matrix x.