Hello,
I have one cell A of size nxm and I would like to convert it into a cell of size nx1. For example if
A= { [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]}
I want
C= { [1 2 3 4 5] [6 7 8 9 10]}
I tried
for i=1:n C{i,1} = A{i,:};end
but this only gives me the first value of A per line
I don't know how to do this, any help is appreciated!
Best Answer