matrix manipulation
이전 댓글 표시
how to take matrix element (i.e row) one by one and save each new matrices in a new variable example:
original matrix: a=[2 6 7 8;4 5 3 7;9 7 6 9;5 3 1 9]
become: a1=[4 5 3 7;9 7 6 9;5 3 1 9] a2=[2 6 7 8;9 7 6 9;5 3 1 9] a3=[2 6 7 8;4 5 3 7;5 3 1 9] a4=[2 6 7 8;4 5 3 7;9 7 6 9]
채택된 답변
추가 답변 (2개)
Sean de Wolski
2012년 2월 1일
1 개 추천
Don't do it. That is all.
If you explain your end goal to us we can help you find a better way.
댓글 수: 4
eri
2012년 2월 1일
Jan
2012년 2월 1일
@eri: And this is more efficient and more flexible, if you use dynamic indices instead of a copy to a separate variable.
eri
2012년 2월 1일
Walter Roberson
2012년 2월 2일
Use cell arrays, as described in that FAQ entry.
eri
2012년 2월 2일
0 개 추천
댓글 수: 1
Sean de Wolski
2012년 2월 2일
What does:
which -all arrayfun
return? And what is the output from:
ver
at the command line?
카테고리
도움말 센터 및 File Exchange에서 Linear Algebra에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!