%animated 3d curve plot
FPS = 5;
t=[0:0.1:16*pi];
for i = 0:FPS*200
    x = (t/50).^2..*cos(t + pi*i/FPS);
    y = (t/50).^2.*sin(t + pi*i/FPS);
    z = t/10; 
    plot3(x,y,z); 
    axis equal;
    axis([-2,2,-2,2,-1,12,0, 1]);
    pause(1/FPS);
end