Delete rows from array

3 Ansichten (letzte 30 Tage)
Benjamin Cowen
Benjamin Cowen am 2 Feb. 2016
Beantwortet: Image Analyst am 5 Feb. 2016
I have an array called yi1
It has more than 10,000 rows.
How can I delete all rows from 10,000 upwards?

Akzeptierte Antwort

James Tursa
James Tursa am 2 Feb. 2016
yi1 = your matrix
yi1(10000:end,:) = [];

Weitere Antworten (1)

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

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by