axis in a semilogx

2 ビュー (過去 30 日間)
Daniel
Daniel 2014 年 11 月 18 日
回答済み: Doug Hull 2014 年 11 月 18 日
Hello,
I am plotting the following with semilogx:
----
F1=[200 200 200];
N1=[10000 15000 37000];
F2=[300 300 100];
N2=[12000 14000 88000];
F3=[100 200 300];
N3=[120000 14000 8000];
Ftot=[F1 F2 F3]; Ntot=[N1 N2 N3];
figure
semilogx(N1,F1,'bo')
hold on
semilogx(N2,F2,'ro')
semilogx(N3,F3,'go')
xlabel('N');
ylabel('F');
grid on
axis([min(Ntot)*0.5, max(Ntot)+min(Ntot), 0, max(Ftot)+50])
-----
The x-axis only contains 10^4 and 10^5. How do I get the plot to display each value for every vertical gridline?
Thank you.

採用された回答

Doug Hull
Doug Hull 2014 年 11 月 18 日
Just add
xlim([1 128000])

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeChange Markers についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by