MATLAB: Select rows and put into cell array

cell arraysMATLABselecting rows

I have 10000 rows and I want separate into 10 cell arrays with
Array Row
Cell array 1: 1
11
21
31
and so on
Cell array 2: 2
12
22
32
and so on
Until Cell array 10

Best Answer

A=rand(10000,5);
result=cell(1,10);
for i=1:1:10
result{i}=A(i:10:1000,:);
end