필터 지우기
필터 지우기

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 CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by