I have 3D data plotted using the \'plot3\' function. I would like to constrain the Y and Z axes such that they are equal in scale. The X axis should be automatically scaled
Try daspect.
daspect
plot3(5*rand(10,1),10*rand(10,1),rand(10,1)) tmpAspect=daspect(); daspect(tmpAspect([1 2 2]))
daspect() returns the current aspect ratio as produced by axis 'auto'.
daspect()
daspect(tmpAspect([1 2 2])) then enforces that y and z have the same scale.
daspect(tmpAspect([1 2 2]))