From: Sadik on
Hello Vinh,

How about this one:

matrixA(matrixB==2,:) = [];

Best.