필터 지우기
필터 지우기

How to use 'dates' and 'axis tight' for charts my data are in quarters in Matlab

조회 수: 3 (최근 30일)
Victor
Victor 2014년 11월 20일
댓글: Star Strider 2014년 11월 22일
Hi there I have a code written to plot charts in quarters in matlab but need help on that. thanks. I attach the code and the data (127 observations) 1975q3-2007q3

답변 (1개)

Star Strider
Star Strider 2014년 11월 20일
You’re not plotting any specific values for your independent variables. I can’t tell from using matfile on ‘innovations.mat’ if there is a date vector. You have to plot a vector of datenumbers, then use datetick. See the documentation for the datetick function, particularity the discussion of ‘dateFormat’ under ‘Input Arguments’.
  댓글 수: 4
Star Strider
Star Strider 2014년 11월 22일
Post a representative vector of dates for your data. I do not have your date data so I cannot plot it by quarters.
See the documentation for datetick that I linked to in my Answer. It will give you the information you need.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by