I have a cell matrix-
x = { 1 2 'a' 'q' ; 2 3 'a' 'p'; 3 4 'a' 'q'; 5 6 'b' 'p' ; 7 8 'b' 'q' ;9 8 'b' 'q';};or x =1 2 a q2 3 a p3 4 a q5 6 b p7 8 b q9 8 b q
I want to filter out all rows that have 'a' in the 3rd column and 'q' in the fourth. My result matrix should be-
result=1 2 a q3 4 a q
How do I do this?
Best Answer