How to add more lables to x axis?

2 ビュー (過去 30 日間)
Chen Zhu
Chen Zhu 2017 年 11 月 13 日
回答済み: KSSV 2017 年 11 月 13 日
In this plot, the X axis does not clearly indicates the values. The different between each point is 500. How to reduce it to 200, like the plot below?
Code to generate CDF:
[f,x] = ecdf(sample1);
plot(x,f,'r'); hold on;
[f2,x2] = ecdf(sample2);
plot(x2,f2,'g'); %CDF

回答 (1 件)

KSSV
KSSV 2017 年 11 月 13 日
x = 1:10 ;
y = rand(1,10) ;
plot(x,y) ;
set(gca,'XTick',0:0.5:10)

カテゴリ

Help Center および File ExchangeExploration and Visualization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by