I have an array called yi1
It has more than 10,000 rows.
How can I delete all rows from 10,000 upwards?

 Respuesta aceptada

James Tursa
James Tursa el 2 de Feb. de 2016

0 votos

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

Más respuestas (1)

Image Analyst
Image Analyst el 5 de Feb. de 2016

0 votos

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

Categorías

Más información sobre Data Types en Centro de ayuda y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Preguntada:

el 2 de Feb. de 2016

Respondida:

el 5 de Feb. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by