MATLAB: How to move y-axis number on the left side axesMATLABplot 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"; Related SolutionsMATLAB: Plot a graph with x-axis on top and y-axis on the left side t=0:0.1:10;y=sin(t);plot(t,y)set(gca,'XAxisLocation','top','YAxisLocation','left','ydir','reverse'); MATLAB: Ho to plot multy-axis with Two Y-axis in left hand side You can just alter the PLOTYY function:figurex = 0:0.01:20;y1 = 200*exp(-0.05*x).*sin(x);y2 = 0.8*exp(-0.5*x).*sin(10*x);[AX,H1,H2] = plotyy(x,y1,x,y2,'plot');set(AX(2),'ytick',[-.7:.2:7])set(AX,'yaxislocation','left') Related QuestionIs there a way to remove individual tick labelsY-axis scaleHow to show two axis on a plot only where i want themTwo y-axis colors
Best Answer