how to remove some row or column of a matrix at once?
1 回表示 (過去 30 日間)
古いコメントを表示
lets say i have a 100x100 matrix and i want to remove row 71-100 so it become 100x70 matrix
0 件のコメント
回答 (2 件)
Sean de Wolski
2012 年 11 月 6 日
Note you say row but the new size of your matrix removed columns
Here are two ways to remove columns:
x = x(:,1:70); %glass half full
or
x(:,71:end) = []; %glass half empty
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!