Generating a series of marices
조회 수: 1 (최근 30일)
이전 댓글 표시
Basically, I'm trying to read a large matrix and then break that into a series of arrays. I was attempting something of the nature.
for i= 1:size(a,1)
m_i = a(i, 1:size(a,2)
end
and I want to get back
m_1 = [....] m_2 = [.....] m_3 = [....]
any help on what actual command to use would very helpful. Thanks
댓글 수: 1
Star Strider
2015년 2월 3일
Don’t do that!
Simply address your row vectors as elements in your ‘a’ matrix. Don’t create individual variables for each row.
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!