How to get back view of an object?

5 views (last 30 days)
Roy Goodman
Roy Goodman on 5 Feb 2025
Commented: Voss on 5 Feb 2025
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.

Accepted Answer

Voss
Voss on 5 Feb 2025
[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)

More Answers (0)

Tags

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!