Commit e9688560 authored by Stéphane Adjemian's avatar Stéphane Adjemian

Allow initialization with histval block.

[skip ci]
parent 1f7d3bed
Pipeline #791 skipped
......@@ -58,6 +58,15 @@ else
transform = varargin{2};
% If first argument is empty, try to set the initial condition with histval.
if isempty(initialcondition)
initialcondition = dseries(M_.endo_histval', 1, cellstr(M_.endo_names), cellstr(M_.endo_names_tex));
error('Use histval block to set the initial condition.')
% Check third argument.
if ~iscell(listofshocks)
error('Third input argument has to be a cell of string or dseries objects!')
Markdown is supported
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