plot3

Line spiral

z = 10*(1:pi/50:10*pi)
y = z.*sin(z/10)
x = z.*cos(z/10)
plot3(x,y,z)

Double spiral

z = 10*(1:pi/50:10*pi)
y = z.*sin(z/10)
x = z.*cos(z/10)
o = struct('lineStroke','red', 'showCanvas', false)
plot3(x,y,{z -z},{o []})

Related documentation

3D graphs - Basic Options and Setup

See also

surf | scatter3 | plot