How to get back view of an object?

조회 수: 6 (최근 30일)
Roy Goodman
Roy Goodman 2025년 2월 5일
댓글: Voss 2025년 2월 5일
I'm finding manipulating a three-dimensional object simply counterintuitive. Here is a figure I made. Let's call this the front view. In this particular figure, the z-x plane contains the equator and the north pole lies in the positive y-direction. The figure shows level sets of a function on the sphere.
This figure was plotted with the command
view([7 67])
I want to plot a second image to show this figure from behind. As this front view shows the equator above the midline, and we can see the south pole, the rear view should depict the equator below the midline, and we should see the north pole. I cannot figure out what values to set az and el in the view command to do this.

채택된 답변

Voss
Voss 2025년 2월 5일
[x,y,z] = sphere(40);
surf(x,y,z)
axis equal
xlabel('x')
ylabel('y')
zlabel('z')
view([7 67])
ax = copyobj(gca(),figure());
v = ax.View;
v(1) = v(1)+180;
v(2) = -v(2);
view(v)
  댓글 수: 2
Roy Goodman
Roy Goodman 2025년 2월 5일
Thanks!
Voss
Voss 2025년 2월 5일
You're welcome!

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

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by