I have matrix
A = [1 2;2 2;3 3;4 3;5 3;6 3;7 2;8 3;9 2;10 2;11 3;12 3;13 2;14 2;15 3]
I need to randomly remove 10 row from A.
I am using with this code:
for i = 1:10
    x = randi([2  3],1);
    A(any(A==x,2),:)=[];
end
so A remaining five rows only. 
thank you so much..
 
     
    