How to alter the x axis?

4 views (last 30 days)
Carrie Haslam
Carrie Haslam on 9 Sep 2016
Edited: Thorsten on 9 Sep 2016
Hi,
Please can you tell me how I can alter the x axis to go from 200 to 10e10?
Many thanks

Answers (2)

Star Strider
Star Strider on 9 Sep 2016
I would use the semilogx function to plot your data.
  2 Comments
Carrie Haslam
Carrie Haslam on 9 Sep 2016
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 on 9 Sep 2016
My pleasure.
Explore the Axes Properties of your plot and experiment with them to see what works for you.

Sign in to comment.


Thorsten
Thorsten on 9 Sep 2016
Edited: Thorsten on 9 Sep 2016
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])

Community Treasure Hunt

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

Start Hunting!