Deleting rows with specific index
64 ビュー (過去 30 日間)
古いコメントを表示
Hi all, I want to delete rows with specific index number in my matrix and remove it from the matrix not assigning zero. For example I have a matrix with 400 row and I want to remove the rows with index =[ 6 13 16 25 30 86] What should I do? Thanks
0 件のコメント
回答 (1 件)
per isakson
2012 年 3 月 31 日
Try
Matrix( [6 13 16 25 30 86], : ) = [];
and learn how to use the Matlab documentation
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!