format long; minimum = 2; N_0 = 0; for n = 1:100 if ( sin(n) < minimum ) N_0 = n; minimum = sin(n); end end N_0 minimum