フィルターのクリア

Delete rows from a matrix

2 ビュー (過去 30 日間)
Eranja Noopehewa
Eranja Noopehewa 2020 年 3 月 25 日
コメント済み: Ameer Hamza 2020 年 3 月 25 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by