How to set X axis limit as 10 to power 1 up to 10 to power 5

4 views (last 30 days)
set(hAx(1),'XLim',[1e1 1e5])
Please find the attachment. I need some thing like that.

Accepted Answer

Adam
Adam on 9 Apr 2018
Edited: Adam on 9 Apr 2018
set( hAxes, 'XScale', 'log' )
will give you the logarithmic axes scale which you can combine with XLim. I can't remember off-hand when logarithmic axes were introduced, but I think it was a long time ago so whatever version you are using this should work.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!