フィルターのクリア

plotting data by month/year

13 ビュー (過去 30 日間)
Alexis L
Alexis L 2017 年 7 月 19 日
回答済み: Chad Greene 2017 年 7 月 24 日
Hi,
I have data files from 06/2016 to 06/2017 by month which I am plotting. I need the xaxis intervals to be labeled with the month and year; can anyone help me with this?
Thank you!
  2 件のコメント
dpb
dpb 2017 年 7 月 19 日
See <plot-dates> and links therefrom.
Alexis L
Alexis L 2017 年 7 月 24 日
Thank you!

サインインしてコメントする。

回答 (2 件)

Cong Ba
Cong Ba 2017 年 7 月 24 日
Hi Alexis,
You may look into this data type called timetable . It is quite new so not many people know about it. But it is basically just designed to deal with time series or any data with time stamps, and according to my experience, it does job way better than scripts I wrote before.

Chad Greene
Chad Greene 2017 年 7 月 24 日
Alternatively, you can call this after plotting in datenum format. datenum is available for over 10 years in the basic distribution of Matlab.
datetick('x','mmm-yy','keeplimits')

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by