MATLAB: Deleting specific Rows in a matrix

columsdeletedeleting rowsmatrixrows

Hi,
I have a matrix "A" that is 350×1 matrix, so it is a very large matrix. This matrix has about 40 rows that I want to remove. I know these rows and they are stored in another matrix "B", which is a 40×1 matrix. How do I delete the rows that are listed in matrix "B" from matrix "A"?

Best Answer

you can do this
A(B)=[];
This will delete the rows from A given the numbers that are stored in B.