I had a matrix s of size 4*12540, i want to use only 4*4 of this matrix how should i remove extra columns?
1 回表示 (過去 30 日間)
古いコメントを表示
I had a matrix s of size 4*12540, i want to use only 4*4 of this matrix how should i remove extra columns?
0 件のコメント
採用された回答
その他の回答 (1 件)
Joseph Cheng
2014 年 3 月 31 日
編集済み: Joseph Cheng
2014 年 3 月 31 日
If you want to completely remove these columns you can use [] ;
example:
Testmatrix = rand(4,12540);
Testmatrix(:,5:end) = [];%All rows in columns 5 through end are blank;
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!