PlotDataDays

버전 1.0.0.0 (1.08 KB) 작성자: Michael Robbins
Plots data excluding days with no values (ie weekends and holidays).
다운로드 수: 2.7K
업데이트 날짜: 2003/4/24

라이선스 없음

PlotDataDays(x,y,VLINEON,TEST)
plots data excluding days with no values

If VLINEON is true, PlotDataDays will put a vertical line where the weekends and holidays (missing data) should be.

If TEST is true, it will plot before and after excluding empty days.

The function returns h, such that h.fig is the handle to the figure h.y is the handle to the y data h.x is the handle to the original x data (Scale) h.nx is the handle to the new x data (plotted) h.line is the handle to the line h.axis is the handle to the axis.

USAGE
y=rand(100,1).*2+100;
x=[today-12:.1:today-5.1,today-2.9:.1:today];
% THE NEW WAY
h1=PlotDataDays(x,y);
% THE OLD WAY
figure;
h2=plot(x,y);
datetick;

IT'S NOT FANCY BUT IT WORKS

인용 양식

Michael Robbins (2024). PlotDataDays (https://www.mathworks.com/matlabcentral/fileexchange/3305-plotdatadays), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Dates and Time에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0