k=0; y=0; for i=1:100; if(k>sin(i)); k=sin(i); y=i; else k=k; endif end