MATLAB: How to scale an axis on a plot in powers of 10
axis scaling
I have a plot of experimental data and the x-axis is scaled from to , but I want it to be scaled in powers of 10 from to . What could I do to fix this axis scaling issue?
I’m having a bit of a problem following your code, but you can label your second axis with whatever you want usingset withgca and'XTick' and'XTickLabel'.
For example:
set(gca, 'XTick', axes.XLim, 'XTickLabel', Clim)
I’m not certain that’s exactly what you want, so experiment with it since I may have misunderstood your variables.
Best Answer