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 Center および File ExchangeGraphics Objects についてさらに検索

タグ

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by