How to alter the x axis?

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

0 votes

I would use the semilogx function to plot your data.

2 Comments

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
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])

Asked:

on 9 Sep 2016

Edited:

on 9 Sep 2016

Community Treasure Hunt

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

Start Hunting!