Skip to content
Snippets Groups Projects
Commit 62e80b0c authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

smoother2histval.m: also set M_.exo_histval

parent 489e6684
No related branches found
No related tags found
No related merge requests found
...@@ -188,11 +188,16 @@ for i = 1:length(invars) ...@@ -188,11 +188,16 @@ for i = 1:length(invars)
v = s((period-M_.maximum_lag+1):period); v = s((period-M_.maximum_lag+1):period);
if ~isfield(opts, 'outfile') if ~isfield(opts, 'outfile')
j = strmatch(outvars{i}, M_.endo_names, 'exact'); j_endo = strmatch(outvars{i}, M_.endo_names, 'exact');
if isempty(j) if ~isempty(j_endo)
M_.endo_histval(j_endo, :) = v;
end
j_exo = strmatch(outvars{i}, M_.exo_names, 'exact');
if ~isempty(j_exo)
M_.exo_histval(j_exo, :) = v;
end
if isempty(j_endo) && isempty(j_exo)
error(['smoother2histval: output variable ' outvars{i} ' does not exist.']) error(['smoother2histval: output variable ' outvars{i} ' does not exist.'])
else
M_.endo_histval(j, :) = v(k);
end end
else else
data(:, i) = v'; data(:, i) = v';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment