How can I delete rows from matrix in matlab?
1 回表示 (過去 30 日間)
古いコメントを表示
ghazwan alsoufi
2015 年 1 月 15 日
回答済み: Mohammad Abouali
2015 年 1 月 15 日
Hello there, I have a linear programming problem as you Know with two matrices left hand side and right hand side. I want to delete the rows from two matrices which are associated with the value zero (0) in the right hand side. Regards, Ghazwan
0 件のコメント
採用された回答
Mohammad Abouali
2015 年 1 月 15 日
Let's say you want to delete the r-th row from matrix A. This should work:
A=A([1:r-1 r+1:end],:)
0 件のコメント
その他の回答 (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!