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