Good afternoon. Request your help with the following problem. I have a matrix called "Cons" – you can see it in the image -, and I have 2 vectors [Ii2, Ji2] that contain the position of rows and columns that I want to eliminate from the "Cons" matrix. For example, I want to eliminate the first 3 columns of "Cons" according to the value of the vector Ji2. How do I remove those columas and those same rows from my "Cons" matrix? Thank you.
MATLAB: Eliminate several columns and rows of a matrix using vectors.
columnseliminatematrixrowsvectors
Best Answer