How to get back view of an object?
    5 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
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.

0 commentaires
Réponse acceptée
  Voss
      
      
 le 5 Fév 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 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Graphics Objects dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



