Good morning or afternoon to everyone. I've already searched a lot about this but I were not able to fix it, maybe I do not follow all the steps. I need to make a plot of different time series, where the x axis should be the time range, from january 2007 to august 2016. The dates are collected on a .xlsx file, and they are of the format dd/mm/yyyy. How can I use them as "values" of the x axis? Using xlsread they are uploaded as cell. I would really appreciate the help of who is going to answer me.

답변 (1개)

KL
KL 2017년 11월 1일
편집: KL 2017년 11월 1일

0 개 추천

You could use them as xticklabels and use the datestr of your datetime values.
There are also more easier possibilities like datetick. For example,#
plot(dateTimeVec,Measurements)
datetick('x','mmmyyyy')
Check these links:

카테고리

도움말 센터File Exchange에서 Time Series Objects에 대해 자세히 알아보기

태그

질문:

2017년 11월 1일

편집:

KL
2017년 11월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by