I would like to change the view of a 3D plot in matlab such that the y
-axis points upward and the z
-axis points to left. For example, consider the following plot:
Here the x
-axis points forward, the y
-axis points to the right and the z
-axis points upward.
I would like to have the y
-axis points upward and the z
-axis points to the left instead. I tried to rotate the plot (using the figure window toolbar rotate button) but I could not get it to work. (It should just be a simple 90 degrees rotation about the x
-axis)
Code to generate the plot:
membrane
view(100,50)
xlabel('x-axis');
ylabel('y-axis');
zlabel('z-axis');
grid on