b = sin(0); for i = 1 : 100 a = sin(i); if a < b; b = a; disp(i) disp(b) end end