Delete rows from a matrix
2 ビュー (過去 30 日間)
古いコメントを表示
Hi, I want to delete 1:5 and 10:15 rows from a given 15*1 matrix. How can I do this ?
0 件のコメント
採用された回答
Ameer Hamza
2020 年 3 月 25 日
編集済み: Ameer Hamza
2020 年 3 月 25 日
Something like this
x = (1:15)';
x([1:5 10:15], :) = [];
2 件のコメント
その他の回答 (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!