MATLAB: How to move y-axis number on the left side

axesMATLABplot

axes.PNG
I want to have y-axis numbers on the left side of the axis itself in such a way that they don't overlap the straight line. Any solution ?

Best Answer

ax = gca;
ax.YAxisLocation = "left";