If I have a 5×6 matrix for example, how can I go about extracting elements common to the 3rd and 5th rows & the 4th and 5th columns?

# MATLAB: Extracting elements common to rows and columns in a matrix

matrices

Skip to content# MATLAB: Extracting elements common to rows and columns in a matrix

matrices

If I have a 5×6 matrix for example, how can I go about extracting elements common to the 3rd and 5th rows & the 4th and 5th columns?

## Best Answer