How can I change the number of MinorTicks between MajorTicks?

8 ビュー (過去 30 日間)
Geovana Colombo
Geovana Colombo 2016 年 10 月 24 日
編集済み: Kirby Fears 2016 年 10 月 24 日
Hello, I use the code below to plot some results. The results are given between June 2012 and September 2015. I would like to put the MajorTicks every three months and the MinorTicks each month that has no label. How could I change the number of MinorTicks?
if true
startDate=datenum('06-01-2012');
endDate=datenum('09-31-2015');
xData=linspace(startDate,endDate,16);
set(gca,'XMinorTick','on','XTick',xData)
datetick('x','mmm/yy','keepticks')
end

回答 (1 件)

Kirby Fears
Kirby Fears 2016 年 10 月 24 日
編集済み: Kirby Fears 2016 年 10 月 24 日

カテゴリ

Help Center および File ExchangePlatform and License についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by