Skip to content
Snippets Groups Projects
Commit 052faa2f authored by MichelJuillard's avatar MichelJuillard
Browse files

make_y.m: replaced max_lead and max_lag by 1, as the model is now

always transformed with leads and lags on one period only. Close issue #613
parent 45f7de33
No related merge requests found
......@@ -43,14 +43,14 @@ end
if isempty(M_.endo_histval)
if isempty(ys0_)
oo_.endo_simul = [oo_.steady_state*ones(1,M_.maximum_lag+options_.periods+M_.maximum_lead)];
oo_.endo_simul = [oo_.steady_state*ones(1,options_.periods+2)];
else
oo_.endo_simul = [ys0_*ones(1,M_.maximum_lag) oo_.steady_state*ones(1,options_.periods+M_.maximum_lead)];
oo_.endo_simul = [ys0_ oo_.steady_state*ones(1,options_.periods+1)];
end
else
if ~isempty(ys0_)
error('histval and endval cannot be used simultaneously')
end
oo_.endo_simul = [M_.endo_histval ...
oo_.steady_state*ones(1,options_.periods+M_.maximum_lead)];
oo_.steady_state*ones(1,options_.periods+1)];
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment