Skip to content
Snippets Groups Projects
Commit 54d95772 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

dynare++/dynare_simul/dynare_simul.m: fix interface following 7e770f69

parent a9868927
No related branches found
No related tags found
1 merge request!2097dynare++/dynare_simul/dynare_simul.m: fix interface following 7e770f69
...@@ -42,6 +42,11 @@ ...@@ -42,6 +42,11 @@
% All examples suppose that the prefix is 'dyn' and that your_model.mat % All examples suppose that the prefix is 'dyn' and that your_model.mat
% has been loaded into Matlab. % has been loaded into Matlab.
% %
% You could e.g. use
% load('example1.mat');
% shocks=randn(size(dyn_shocks,1),1000)'*chol(dyn_vcov_exo);
% dynare_simul('example1',shocks')
%
% 1. response to permanent negative shock to the third exo var EPS3 for % 1. response to permanent negative shock to the third exo var EPS3 for
% 100 periods % 100 periods
% %
...@@ -168,9 +173,5 @@ end ...@@ -168,9 +173,5 @@ end
seed = ceil(10000*rand(1,1)); seed = ceil(10000*rand(1,1));
% call dynare_simul_ % call dynare_simul_
[err,r]=dynare_simul_(order-1,nstat,npred,nboth,nforw,... r=dynare_simul_(order-1,nstat,npred,nboth,nforw,...
nexog,ystart,shocks,vcov_exo,seed,ss,dr); nexog,ystart,shocks,vcov_exo,seed,ss,dr);
\ No newline at end of file
if err
error('Simulation failed')
end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment