diff --git a/matlab/perfect-foresight-models/sim1_linear.m b/matlab/perfect-foresight-models/sim1_linear.m index 85dc384058b908a44cecc49e2113f249eb70ae08..080a60a5dd75ce70d7422d022a2537e010b3c7bb 100644 --- a/matlab/perfect-foresight-models/sim1_linear.m +++ b/matlab/perfect-foresight-models/sim1_linear.m @@ -111,7 +111,8 @@ dynamicmodel = str2func([M.fname,'_dynamic']); z = steadystate_y([ip; ic; in]); % Evaluate the Jacobian of the dynamic model at the deterministic steady state. -[d1,jacobian] = dynamicmodel(z, transpose(steadystate_x), params, steadystate_y, 1); +[d1,jacobian] = dynamicmodel(z, repmat(transpose(steadystate_x),options.periods+M.maximum_lag+M.maximum_lead,1),... + params, steadystate_y, M.maximum_lag+1); % Check that the dynamic model was evaluated at the steady state. if max(abs(d1))>1e-12