MATLAB: Without using loops

matrices

i have a large scale of data. i need to do the following job without using loops
z=[1,2,3,4;5,18,7,8;12,16,35,-8];
yuk=max(z(:,1:end));
i want to search "yuk" vectors elements in the "z" matrice. but i want to search yuk(1) only for first column of the z matrice , the yuk(2) to the second column of the matrice and so on. how can i do that
thanks

Best Answer

[yuk,idx] = max(z)