MATLAB: Delete rows from array

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

Best Answer

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