MATLAB: Delete rows from a matrix

delete rows from a matrix

Hi, I want to delete 1:5 and 10:15 rows from a given 15*1 matrix. How can I do this ?

Best Answer

Something like this
x = (1:15)';
x([1:5 10:15], :) = [];