MATLAB: How to create non uniform spacing between axis ticks like in figure axisMATLABplotplotting I'm trying to create a ticks distribution like the one in figure …I really can't figure how to do it. Do I have to define the x-variable in a particular way or is it just an axis and ticks thing ? Best Answer Hi Francesco, take a look at this documentation page if you haven't already: Specify Axis Tick Values and LabelsThere is also an example of setting nonuniform x-axis tick locations on the documentation page for 'xticks'.adding to this (5/14/20): It looks like you also wanted to use a logarthmic scale for the x-axis and semilogx was already suggested.You can also use xlim to specify limits for the x-axis. Related SolutionsMATLAB: Deletting X and Y axes ticks set(gca,'xtick',[]) set(gca,'ytick',[]) MATLAB: Change the axis tick set(gca,'xtick',1:1:10)replace 10 with your larger value Related QuestionGUI graph with strings as axisHow to set x-axis labels under certain tick marksHow to plot inverse power in matlab?.How to modify “ax = axes(___)” functionHow to change the x-axis label on a SEMILOGX plot from exponential to normal format in MATLAB
Best Answer