tsplot_d.m
来自「计量工具箱」· M 代码 · 共 57 行
M
57 行
% 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 + =
减小字号Ctrl + -
显示快捷键?