%1.
x=randi(100,10,10)
[y,ind]=find(x==max(x(:)));
x(:,ind)
%nebo
x=randi(100,10,10)
[y,ind]=max(max(x));
x(:,ind)

%2.
x=randi(100,10,10)
x(mod(x,7)==0)=0
%nebo
x=randi(100,10,10)
x.*(mod(x,7)~=0)

%3.
x=randi(100,10,10)
x(sum((mod(x,7)==0)')>0,:)=[]
%nebo
x=randi(100,10,10)
x(prod((mod(x,7))')==0,:)=[]

%4.
x=randi(10,10,2)
x(:,3)=[sum(x')]

%5.
x=randi(10,10,3)
x(sum(x')>15,:)=[]

%6.
x=randi(10,10,5)
[Y,ind]=sort(sum(x'),2,'descend');
x(ind(1,:),:)

%7.
x=randi(6,10,10)
u=[sum(sum(x==1))/100,sum(sum(x==2))/100,sum(sum(x==3))/100,sum(sum(x==4))/100,sum(sum(x==5))/100,sum(sum(x==6))/100]
sum(u)