j=1; for i=1:100; if(sin(j)>sin(i)); a = i; b = sin(i); j = i; endif; endfor;