MATLAB MATLAB: Plotting help, turning 2D plot into 3D volume of revolution

  • Thread starter sunnygsm
  • Start date
Hi I have an issue I am trying to solve, so far I haven't managed to get past it.

I have some data for 200 points in theta from 0 to 2PI. The data is spherically symmetric so there is no phi dependence. Basically what I want to do is turn the 2D plot into a 3D by revolving the 2D plot.

My data are velocities which enter in the format. (theta from Z axis)

x = V. cos(theta)
y = V. sin(theta)

V is an array of length 200. And each element in V corresponds to a different value of theta.

Any thoughts on how I might turn this into a 3D plot? If you need clarification please let me know.

Want to reply to this thread?

"MATLAB: Plotting help, turning 2D plot into 3D volume of revolution" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving