x = zeros(1,100) a = 0 j = 1 for i=0:2*pi/100:pi*2-(2*pi/100); a = sin(i) j x(j) = a j = j + 1 end figure; plot(x, 'green')