I have tried to find a suitable solution on the pages but cant seem to find any. I have a cell array of m x n dimensions and I have arrays being created of 2×1 dimensions and would like to insert each array into a different cell of the cell array.
a=cell(4x5) for i = 1:5 for j = 1:4 b = array which was calculated as 2x1 array a(j,i) = b end end
I can't seem to get this right. I keep getting the following error:
Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Help will be appreciated.
Best Answer