matlab:
(1) create business cycle indicator (e.g. ind=zeros(100,2); ind(1:50,1)=-1000; ind(1:50,2)=2000)
(2) use the "area" command in matlab to shade the area (e.g. area(date,ind))
(3) hold the figure
(4) plot the time series
(5) adjust your axis properly
(6) adjust the color using "colormap" command
(7) output the figure


雷达卡

京公网安备 11010802022788号







