MATLAB: Selecting different criteria for logicals

logical?MATLAB

I have a 100 x 2 matrix and would need to filter those rows that has 2 in the first column, and 3 in the second column into a logical.
How should I go about this? Thank you! 🙂

Best Answer

L=data(:,1)==2 & data(:,2)==3;