Automatic naming of matrix
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I have a cell matrix of 300,000 x 100 format. By using for loops, I want to make a new matrix every 10,000 rows while naming each different matrix automatically. For instance, a matrix that contains 1:10,000 from the original huge matrix will have something like matrix_1 as follows:
matrix_1 = [1:10,000,:];
matrix_2 = [10,001:20,000,:];
.
.
.
.
matrix_20 = [190,001:200,000,:];
Would you mind sharing your thoughts on this?
Thanks for your help in advance!
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2016년 5월 2일
편집: Azzi Abdelmalek
2016년 5월 2일
This is not good, Use instead a cell array
matrix{1} = [1:10];
matrix{2} = [1:20]
댓글 수: 3
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!