I need help plotting a spiral helix on a cone. For the helix:
x = tsin(6t)
y = tcos(6t)
z = t/3
…and this helix lies on the cone:
z = sqrt(x^2+y^2)/3
I need to plot the mesh plot of the cone and the 3D line plot of the helix on the same
chart.
I think you want a surface plot of the cone first. Try
Then, plot this surface with the
surffunction, and set some sort of shading and transparencyThis should make a cone shape (you can play with the colors).
Now for the helix, define the vectors as you did
Then do
This makes it so any other plotting you do will appear on the same figure.
Then finally,