Why is the automatic time labeling of my plot in quarters?

I am plotting a timeseries object* and the automatic date labelling of the x-axis is, unfortunately, in financial quarters (Q1-20, Q2-20, Q3-20, etc.). How can I chose a different time labeling, such as months?
*I know timeseries are outdated but I have to use them to pass time info into the controlchart functions.

 採用された回答

KAE
KAE 2020 年 8 月 3 日

0 投票

It turns out the time variable is a datenum, and when you are plotting them, you can choose the time labelling format using datetick, such as:
datetick('x', 6); % Label with month/year

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Dates and Time についてさらに検索

質問済み:

KAE
2020 年 8 月 3 日

回答済み:

KAE
2020 年 8 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by