How to alter the x axis?

2 次查看(过去 30 天)
Carrie Haslam
Carrie Haslam 2016-9-9
编辑: Thorsten 2016-9-9
Hi,
Please can you tell me how I can alter the x axis to go from 200 to 10e10?
Many thanks

回答(2 个)

Star Strider
Star Strider 2016-9-9
I would use the semilogx function to plot your data.
  2 个评论
Carrie Haslam
Carrie Haslam 2016-9-9
Hi,
Thank you - I have been using this function, but seem to be having problems altering the axis limits. Do you have any idea what I could try?
Many thanks
Star Strider
Star Strider 2016-9-9
My pleasure.
Explore the Axes Properties of your plot and experiment with them to see what works for you.

请先登录,再进行评论。


Thorsten
Thorsten 2016-9-9
编辑:Thorsten 2016-9-9
Are you sure you mean 10e10 and not 1e10? Otherwise, setting the axes is quite straight forward:
y = linspace(200, 10e10);
semilogy(y)
axis([1, 100, 200, 10e10])

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by