echo on

z = 0:0.1:40;
x = cos(z);
y = sin(z);
clf; 
plot3(x,y,z)

grid on
title('Spiral Plot - using PLOT3')
xlabel('x')
ylabel('y')
zlabel('z')

echo off
shg
