How to reduce an existing matrix
6 ビュー (過去 30 日間)
古いコメントを表示
I would like to reduce an existing matrix (1885x1885) to (188x188), essentially discarding the last 5 rows and columns.
How would I code this. Thanks in advance.
1 件のコメント
採用された回答
Roger Stafford
2013 年 8 月 4 日
I think you mean reduce it to (1880x1880).
M = M(1:end-5,1:end-5);
0 件のコメント
その他の回答 (3 件)
Roger Stafford
2013 年 8 月 4 日
編集済み: Roger Stafford
2013 年 8 月 4 日
M = M(10:10:end,10:10:end);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!