MATLAB: Auto plot scaling in one axis

axis scaling

I need to make a plot with a defined xmin and xmax, but I need the y axis to be scaled as if the axis scaling was on auto. So basically how do I auto scale only one axis?

Best Answer

xlim([xmin xmax])
Related Question