MATLAB Answers

How to rotate 3d graph freely by x or y axis?

44 views (last 30 days)
wei zhang
wei zhang on 4 Nov 2019
Commented: Nadir Altinbas on 4 Nov 2019
Hi,
I am trying to view some 3d geometric surface file. I found a problem that I can't rotate the graph total freely.
For example,
surf(peaks);
rotate3d on;
I can rotate the graph by the z axis freely. But when I want to rotate it by x, y or any other axis in the xy plane. The rotation must stop at 180 ° or -180 ° . I want to know the method to overcome this limitation in plotting the figure. Does some related function or parameters in Matlab useful? Thank you.

  0 Comments

Sign in to comment.

Answers (2)

Nadir Altinbas
Nadir Altinbas on 4 Nov 2019
Msurf command try
mesh counter graphs

  2 Comments

wei zhang
wei zhang on 4 Nov 2019
What do you exactly mean? Could you explain a bit in details?
Nadir Altinbas
Nadir Altinbas on 4 Nov 2019
.......
plot
axis
hold on
while1
process..........
plot(same as obove)
drawnow
end

Sign in to comment.


Star Strider
Star Strider on 4 Nov 2019
It is not interactive, however the rotate function should do what you want.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

Products


Release

R2019b