How to split a 3 by 3 matrix into rows and save rows separetly in arrays
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to store row 1 in ra, row 2 in rb & row 3 in rc.
댓글 수: 0
답변 (1개)
the cyclist
2022년 7월 16일
ra = NewRange(1,:);
rb = NewRange(2,:);
rc = NewRange(3,:);
Be aware that you may not actually need to do this separation, because you can always just use NewRange(1,:) for the first row, without defining a new variable.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!