a=sin(1); b=1; for i=1:100 if a>sin(i+1) a=sin(i+1); b=i+1; end end disp(a) disp(b)