College of Natural Sciences
 
FAQs
This is for IE7 to hold div open

2.6.2. How do you get perspective with 3-D plots?

To change the ratio of the axis in a 3-D plot, you will need to change the xform property of the current axis. The property transforms the 3-D data to be plotted on the 2-D screen. The following M-file will do the trick.

function aspect3(x,y,z)

v = get(gca,'xform');

d = diag([x y z 1]);

set(gca,'xform',v*d);