Let's say we have matrix A=[1 2 3; 4 5 6; 7 8 9; 10 11 12], and b a number the user is inserting.

I want to delete 1st row if b=1, or delete the 2nd row if b=2 etc. Is this possible?

Skip to content# MATLAB: Delete rows from matrix

###### Related Question

delete rows

Let's say we have matrix A=[1 2 3; 4 5 6; 7 8 9; 10 11 12], and b a number the user is inserting.

I want to delete 1st row if b=1, or delete the 2nd row if b=2 etc. Is this possible?

- Shift matrix from a specific row
- Problem with matrix selection
- How to create multiple matrix from a single matrix
- Delete rows in Matrix ‘A’ with same values ‘c’ in column ‘b’
- Matching matrices sizes using if statements
- Subtracting Matrices of Different Sizes by subtracting A(1) from all of B for all of A
- How to transform a matrix in his snake version
- Check with all parameter except its own
- How to element by element multiply all rows of a matrix in a loop

## Best Answer