A = [7 9 2 1 8 3];for i=1:6B{i}=A(1:2,:);end
Hello everyone, I have some difficulty related with extract 'n' rows to be stored in the column. I need the rows to be like below, however, I got the result as B=[7;9] instead.
B{1}= [7 9] B{2}= [2 1] B{3}= [8 3]
Best Answer