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

3 次查看(过去 30 天)
set(hAx(1),'XLim',[1e1 1e5])
Please find the attachment. I need some thing like that.

采纳的回答

Adam
Adam 2018-4-9
编辑:Adam 2018-4-9
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by