% loop_graphicsv2.m

figstep = 1;
cfig = 1;
n=1:1024;
for x=1:10
    figure(cfig); cfig=cfig+figstep;
    a = sin(x*2*pi*n/1024);
    plot(n, a); grid;
    xlabel('x');
    ylabel('f(x)');
end
