How to delete rows from an array?

1 回表示 (過去 30 日間)
Guido Pastore
Guido Pastore 2019 年 3 月 1 日
コメント済み: Guido Pastore 2019 年 3 月 1 日
Given an array of double of size 929x1, I want to obtain a reduced double array with the first 549 lines of the previous one. In short, given a double-sized array of 929x1, we want to eliminate the last 380 lines. How can I do??

採用された回答

Arvind Sathyanarayanan
Arvind Sathyanarayanan 2019 年 3 月 1 日
編集済み: Arvind Sathyanarayanan 2019 年 3 月 1 日
Set the rows you want to delete to null. Example:
x(550:end,:)=[];
  1 件のコメント
Guido Pastore
Guido Pastore 2019 年 3 月 1 日
Thank you so much!

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 3 月 1 日
a = a(1:549,:);

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by