Commit cf9e8a67 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Bug fix. When the estimation command is used, do not issue an error message if...

Bug fix. When the estimation command is used, do not issue an error message if options_.order>1. In this
case reset the options_.order equal to one (except if options_.particle.status==1).
parent 0d58e185
......@@ -37,10 +37,12 @@ if options_.order > 1
disp(' ')
disp('Estimation using a non linear filter!')
disp(' ')
elseif options_.particle.status && options_.order==2
elseif options_.particle.status && options_.order>2
error(['Non linear filter are not implemented with order ' int2str(options_.order) ' approximation of the model!'])
elseif ~options_.particle.status && options_.order==2
error('If you want to estimate the model with a second order approximation using a non linear filter, set options_.particle.status=1;')
disp('If you want to estimate the model with a second order approximation using a non linear filter, set options_.particle.status=1;')
disp('I set order=1!')
options_.order=1;
else
error(['Cannot estimate a model with an order ' int2str(options_.order) ' approximation!'])
end
......
Supports Markdown
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