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

 채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 5월 24일

1 개 추천

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

추가 답변 (1개)

Raj
Raj 2019년 5월 24일

1 개 추천

A=rand(10000,10)
ii=1;
for jj=1:10
num=1;
for l=ii:10:10000
B(num,1:10)=A(l,1:10);
num=num+1;
end
C{jj}=B;
ii=ii+1;
end

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

제품

질문:

2019년 5월 24일

댓글:

2019년 5월 24일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by