Delete rows from array

1 回表示 (過去 30 日間)
Benjamin Cowen
Benjamin Cowen 2016 年 2 月 2 日
回答済み: Image Analyst 2016 年 2 月 5 日
I have an array called yi1
It has more than 10,000 rows.
How can I delete all rows from 10,000 upwards?

採用された回答

James Tursa
James Tursa 2016 年 2 月 2 日
yi1 = your matrix
yi1(10000:end,:) = [];

その他の回答 (1 件)

Image Analyst
Image Analyst 2016 年 2 月 5 日
Another way. Assuming a 2D array:
yi1 = yi1(1:9999,:); % Extract first 9,999 rows

カテゴリ

Help Center および File ExchangeOperators and Elementary Operations についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by