Rotation of 3d image

5 views (last 30 days)
John on 28 Dec 2014
Commented: John on 28 Dec 2014
I have plotted a 3d image. I want to rotate that on the plane along the vertical axis for one complete cycle automatically. Is there any function to do that?

Accepted Answer

Shoaibur Rahman
Shoaibur Rahman on 28 Dec 2014
I am not sure what your aim is. You can try the following code:
for az = -37.5:5:322.5
Append this piece of code after your plot. In 3D, view(3) has azimuth = -37.5 and elevation = 30. So, keeping elevation fixed I change the azimuth for 360 degrees.
  1 Comment
John on 28 Dec 2014
Hey Shoaibur,
This works fine. I was thinking something like that.
Thank you.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!