📄 tsplot_d.m
字号:
% PURPOSE: demo of tsplot (time-series plot)% % %---------------------------------------------------% USAGE: tsplot_d%---------------------------------------------------% generate monthly datan = 120;y = randn(n,1);cstr = cal(1970,1,12);tsplot(y,cstr,'y-monthly');pause;% generate quarterly datan = 80;y = randn(n,1);cstr = cal(1960,1,4);% find 1970,1begp = ical(1970,1,cstr);% find 1979,4endp = ical(1979,4,cstr);tsplot(y,cstr,begp,endp,'y-quarterly');pause;% generate multiple time-seriesn = 40;y = randn(n,3);vname = ['y1', 'y2', 'y3'];cstr = cal(1980,1,12);% plot the entire seriestsplot(y,cstr,vname);pause;% general annual time-seriesn = 60;y = randn(n,1);cstr = cal(1940,1,1);% find 1950begp = ical(1950,1,cstr);endp = 60;tsplot(y,cstr,begp,endp,'y-annual');pause;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -