function createfigure2x2(X1, YMatrix1, YMatrix2, YMatrix3, YMatrix4)
%CREATEFIGURE1(X1, YMATRIX1, YMATRIX2, YMATRIX3, YMATRIX4)
%  X1:  vector of x data
%  YMATRIX1:  matrix of y data
%  YMATRIX2:  matrix of y data
%  YMATRIX3:  matrix of y data
%  YMATRIX4:  matrix of y data

% Create figure
figure1 = figure;


% Create axes
axes1 = axes('Parent',figure1,...
    'Position',[0.13 0.59 0.33 0.34]);
hold(axes1,'on');

% Create multiple lines using matrix input to plot
plot(X1,YMatrix1,'Parent',axes1);

% Create title
title('Inflation');

% Create ylabel
ylabel('%\Delta from  ss');


% Create axes
axes2 = axes('Parent',figure1,...
    'Position',[0.58 0.59 0.33 0.34]);
hold(axes2,'on');

% Create multiple lines using matrix input to plot
plot(X1,YMatrix2,'Parent',axes2);

% Create title
title('Interest rate');

% Create ylabel
ylabel('Annualized %\Delta from  ss');

% Create axes
axes3 = axes('Parent',figure1,...
    'Position',[0.13 0.14 0.33 0.34]);
hold(axes3,'on');

% Create multiple lines using matrix input to plot
plot(X1,YMatrix3,'Parent',axes3);

% Create title
title('Loss');

% Create ylabel
%ylabel('%\Delta from  ss');

% Create axes
axes4 = axes('Parent',figure1,...
    'Position',[0.58 0.14 0.33 0.34]);
hold(axes4,'on');

% Create multiple lines using matrix input to plot
plot(X1,YMatrix4,'Parent',axes4);

% Create title
title('Real Output');

% Create ylabel
ylabel('%\Delta from  ss');

