-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplotirf_slides.m
39 lines (33 loc) · 994 Bytes
/
plotirf_slides.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% Plots impulse-response functions
%alternating color for irf plots
% linescolorGrid = {'r.-','bo-','gs-'}; % linecol = 1, 2, 3 for 'r.-','gs-','bo-'
% if ~exist('linecol','var') || linecol==3;
% linecol=1;
% else
% linecol=linecol+1;
% end;
set(0,'DefaultFigureWindowStyle','docked') % docks all figures
MarkerSize = 5;
% linescolor=linescolorGrid{linecol};
subplot(numrows,3,countadjust+1)
hold on
plot(scalefactor*(d_R_path),linescolor,'MarkerSize', MarkerSize) % plots the non-zero impulse
title('Money growth process')
box off
%legend('Calvo','SDSP')
xlabel('Months')
ylim([-0.25 3.5])
subplot(numrows,3,countadjust+2)
hold on
plot(scalefactor*(PI_path-mu),linescolor,'MarkerSize',MarkerSize)
title('Inflation')
box off
xlabel('Months')
ylim([-0.25 3.5])
subplot(numrows,3,countadjust+3)
hold on
plot(scalefactor*(C_path/Cbar-1),linescolor,'MarkerSize', MarkerSize)
title('Consumption')
box off
xlabel('Months')
ylim([-0.25 3.5])