Hi, I want to delete 1:5 and 10:15 rows from a given 15*1 matrix. How can I do this ?

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 3 月 25 日
編集済み: Ameer Hamza 2020 年 3 月 25 日

0 投票

Something like this
x = (1:15)';
x([1:5 10:15], :) = [];

2 件のコメント

Eranja Noopehewa
Eranja Noopehewa 2020 年 3 月 25 日
Thank You.
Ameer Hamza
Ameer Hamza 2020 年 3 月 25 日
Glad to be of help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Resizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by