deleting multiple rows in a matrix
36 ビュー (過去 30 日間)
古いコメントを表示
how can i completely remove the first 110 rows and the last 70 in a (500*1) matrix? for example is this correct? A(1:110, : ) = [ ] A (430:500, : ) = [ ] Is there a way to combine the two?
0 件のコメント
採用された回答
Voss
2023 年 1 月 10 日
A([1:110 end-69:end],:) = [];
(Also, note that 430:500 is 71 elements, not 70.)
2 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!