Search code examples
matlabplotmatlab-figure

Stop MATLAB from changing image scale in different directions?


I am plotting a 3D plot in MATLAB, and I noticed that the scale is different in each direction. In the attached image for example, you can see that the length in the z-dir is 20 which seems to be equal to the length in the y-dir whose valus is actually 6. So, how can I stop matlab from changing the scale and producing the plot with its actual scale?

mode shape


Solution

  • Try using

    axis equal
    

    Axis documentation here.