Fixed issue with the size of x (exogenous variables).

time-shift
Stéphane Adjemian (Scylla) 2017-07-27 14:15:12 +02:00
parent b866bd828c
commit ccfd809dd0
1 changed files with 2 additions and 2 deletions

View File

@ -77,9 +77,9 @@ Y = DynareOutput.endo_simul;
% get coefficients
[cst,jacob] = model_dynamic(zeros(DynareModel.endo_nbr+ny1,1), ...
zeros(2,size(DynareOutput.exo_simul, 2)), ...
zeros(2,DynareModel.exo_nbr), ...
DynareModel.params, ...
DynareOutput.steady_state,2);
DynareOutput.steady_state,1);
A0inv = inv(jacob(:,jdx));
A1 = jacob(:,nonzeros(DynareModel.lead_lag_incidence(1,:)));
B = jacob(:,end-number_of_shocks+1:end);