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!