Merge pull request #952 from JohannesPfeifer/ident_lag_fix

Update computation of non-zero moments within loop that increases num…
time-shift
Houtan Bastani 2015-06-03 14:26:34 +02:00
commit c639e4a075
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ if info(1)==0,
derivatives_info.DOm=dOm;
derivatives_info.DYss=dYss;
evalin('caller',['options_ident.ar=',int2str(nlags),';']);
indJJ = (find(max(abs(JJ'),[],1)>1.e-8));
end
if length(indJJ)<nparam,
disp('The number of moments with non-zero derivative is smaller than the number of parameters')