Where M is your matrix:
reshape(M(M(:,2)==1,3:4).',[],1)
or
tmp = M(M(:,2)==1,3:4).' tmp(:)
mask = Matrix_One(:,2) == 1; Matrix_Two = Matrix_One(mask,3:4);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!