smoother2histval.m: provide warning when smoothed variables are missing

trust-region-mex
Johannes Pfeifer 2021-07-22 12:21:35 +02:00
parent dc45ac6361
commit a04c348d73
1 changed files with 5 additions and 0 deletions

View File

@ -78,6 +78,11 @@ end
if post_metropolis
tmp = fieldnames(smoothedvars.Mean);
if length(tmp)~=M_.endo_nbr
warning(['You are using smoother2histval although smoothed values have not'...
'been computed for all endogenous and auxiliary variables.'...
'The value of these variables will be set to 0.'])
end
tmpexo = fieldnames(smoothedshocks.Mean);
else
tmp = fieldnames(smoothedvars);