Fixed typo and made error message more explicit

time-shift
JohannesPfeifer 2012-04-26 09:01:33 +02:00
parent c0624738c9
commit 3e5f92a683
1 changed files with 3 additions and 3 deletions

View File

@ -30,12 +30,12 @@ omega = []; f = [];
if options_.order > 1
disp('UnivariateSpectralDensity :: I Cannot compute the theoretical spectral density')
disp('with a second order approximation of the DSGE model!')
disp('Set order = 1.')
disp('Please set order = 1. I abort')
return
end
pltinfo = options_.SpectralDensity.plot;
cutoff = options_.SpectralDensity.cutoff;
sdl = options_.SepctralDensity.sdl;
sdl = options_.SpectralDensity.sdl;
omega = (0:sdl:pi)';
GridSize = length(omega);
exo_names_orig_ord = M_.exo_names_orig_ord;
@ -55,7 +55,7 @@ ivar=zeros(nvar,1);
for i=1:nvar
i_tmp = strmatch(var_list(i,:),M_.endo_names,'exact');
if isempty(i_tmp)
error (['One of the variable specified does not exist']) ;
error (['One of the variables specified does not exist']) ;
else
ivar(i) = i_tmp;
end