MATLAB: Semilogx plot, scaling problem.

plotsemilog plots

When I use the semilogx syntax with X axis to be scaled.
I used semilogx(parameter). I get the result like in the picture attached, but I intended to 100 , 10 , 1 , 0.1 , 0.01 micrometers in the X axis. Can I manually adjust the scale. If so how?

Best Answer

Use xlim() to set the right and left edges of the graph. If you want 1 on the left and 100 as the max value on the right (which means you will crop off much of the data):
xlim([1, 100]);