3D rotation problem of a plot

조회 수: 7 (최근 30일)
ser
ser 2020년 6월 10일
댓글: Ameer Hamza 2020년 6월 11일
I am trying to display a stick man in 3D. I used to plot3 command and got the current_view .fig (this is default output of Matlab plot3 command) file on the attachment
but I would like get a view as shown in the desired_view.png on the attachment. I used rotate3d command with mouse interactively but I
could not got what I aimed. Do you have any suggestion to solve it?
Note: While I was trying to solve the problem I used view(az,el) command but I could not solve the problem. Default azimuth and elevation angles for current_view .fig
  댓글 수: 1
ser
ser 2020년 6월 10일
Thank you David,
When I run view ([ 1 0 0]) I got figure_1 and view ([ -1 0 0]) I got figure_2 . But they are not what I would like to see .
I am trying to get z-axis to be displayed on the top of the figure as shown on desired_view.png

댓글을 달려면 로그인하십시오.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 6월 10일
Only view() is not enough. Try this
view([-90 0]);
camroll(-90);
  댓글 수: 2
ser
ser 2020년 6월 10일
Thank you very much for your reply. It worked well
Ameer Hamza
Ameer Hamza 2020년 6월 11일
I am glad to be of help!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by