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 日

0 投票

yi1 = your matrix
yi1(10000:end,:) = [];

その他の回答 (1 件)

Image Analyst
Image Analyst 2016 年 2 月 5 日

0 投票

Another way. Assuming a 2D array:
yi1 = yi1(1:9999,:); % Extract first 9,999 rows

カテゴリ

ヘルプ センター および 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