Commit c4684885 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed dimension of exo_simul (always add one row).

parent 0efff7c1
......@@ -57,11 +57,7 @@ else
end
Y = DynareOutput.endo_simul;
if ~DynareModel.max_exo_lag_orig
if DynareModel.max_endo_lag_orig>1
DynareOutput.exo_simul = [ zeros(DynareModel.max_endo_lag_orig-1, DynareModel.exo_nbr); DynareOutput.exo_simul];
end
end
DynareOutput.exo_simul = [ zeros(1, DynareModel.exo_nbr); DynareOutput.exo_simul];
% Get coefficients
[cst, jacob] = model_dynamic(zeros(DynareModel.endo_nbr+ny1,1), ...
......
......@@ -60,11 +60,7 @@ else
end
Y = DynareOutput.endo_simul;
if ~DynareModel.max_exo_lag_orig
if DynareModel.max_endo_lag_orig>1
DynareOutput.exo_simul = [ zeros(DynareModel.max_endo_lag_orig-1, DynareModel.exo_nbr); DynareOutput.exo_simul];
end
end
DynareOutput.exo_simul = [ zeros(1, DynareModel.exo_nbr); DynareOutput.exo_simul];
% Simulations (call a Newton-like algorithm for each period).
for it = 1+(1:samplesize)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment