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 thisx = (1:15)';x([1:5 10:15], :) = []; Related SolutionsMATLAB: Deleting specific Rows in a matrix you can do thisA(B)=[];This will delete the rows from A given the numbers that are stored in B. MATLAB: Delete rows from matrix IN the title you mention rows. In the question you mention columns. example:A1=randi(10,64, 2200);A2=randi(10,64, 2200);A3=randi(10,64, 2200);...An=randi(10,64, 2200);mat=[A1;A2;A3;...An];startcolumn=11;step=11;mat(:,[startcolumn:step:end])=[] Related QuestionDeleting rows from arrayDelete rows from arrayMaking permutations in row elements in a matrixDeleting rows and columnsExtract numbers from column matrixDelete rows at intervals
Best Answer