How to get back view of an object?

5 visualizaciones (últimos 30 días)
Roy Goodman
Roy Goodman el 5 de Feb. de 2025
Comentada: Voss el 5 de Feb. de 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.

Respuesta aceptada

Voss
Voss el 5 de Feb. de 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)
  2 comentarios
Roy Goodman
Roy Goodman el 5 de Feb. de 2025
Thanks!
Voss
Voss el 5 de Feb. de 2025
You're welcome!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Objects en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by