If I have a row
A =
1 2 3 4 2 4 7
then I can delete twos with
>> A(A==2)=[]
A =
1 3 4 4 7
Now suppose i have
>> A=[1,2,3,4,2,4,7; 1,2,3,4,5,6,7]
A =
1 2 3 4 2 4 7
1 2 3 4 5 6 7
then how to remove entire columns with twos at top?