Rotate 2-D matrix around axes to create Cylinder

2 views (last 30 days)
Hello,
I'm new to Matlab and am having some problems. I have a 2-D matrix (r,z) that I'm trying to turn into a cylinder. I would like to rotate the matrix 360 degrees around the z axis and than make an image of the resulting cylinder. Is this possible?
Hope anybody can help me with this.
Thanks in advance,
Maartje
  1 Comment
Simon
Simon on 16 Jan 2014
Can you give an example? What do you mean with "rotatte" and "make image"?
You can of course create a matrix (r,phi,z), transform with pol2cart into cartesian (x,y,z) and then use plot3.

Sign in to comment.

Answers (0)

Categories

Find more on 3-D Scene Control in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!