Skip to content
Snippets Groups Projects
Verified Commit e9688560 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Allow initialization with histval block.

[skip ci]
parent 1f7d3bed
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,15 @@ else
transform = varargin{2};
end
% If first argument is empty, try to set the initial condition with histval.
if isempty(initialcondition)
try
initialcondition = dseries(M_.endo_histval', 1, cellstr(M_.endo_names), cellstr(M_.endo_names_tex));
catch
error('Use histval block to set the initial condition.')
end
end
% Check third argument.
if ~iscell(listofshocks)
error('Third input argument has to be a cell of string or dseries objects!')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment