A = [ 2 2 2; 3 3 3; 4 4 4; 5 5 5; 6 6 6]B = [0 1 0 1 0];A( B~= 1, : )
Standard input is empty
A = 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 ans = 2 2 2 4 4 4 6 6 6
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!