How to alter the x axis?
Show older comments
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
on 9 Sep 2016
0 votes
I would use the semilogx function to plot your data.
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])
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!