Delete rows from array

3 vues (au cours des 30 derniers jours)
Benjamin Cowen
Benjamin Cowen le 2 Fév 2016
I have an array called yi1
It has more than 10,000 rows.
How can I delete all rows from 10,000 upwards?

Réponse acceptée

James Tursa
James Tursa le 2 Fév 2016
yi1 = your matrix
yi1(10000:end,:) = [];

Plus de réponses (1)

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

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by