MATLAB: How to delete rows from an array

remove rows

Given an array of double of size 929×1, I want to obtain a reduced double array with the first 549 lines of the previous one. In short, given a double-sized array of 929×1, we want to eliminate the last 380 lines. How can I do??

Best Answer

Set the rows you want to delete to null. Example:
x(550:end,:)=[];