j=1; a=0; b=0; for i=1:100; if (sin(j) > sin(i)); a=i; b=sin(i); j=i; end; end;