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

Bug fixes (typos).

parent a905539f
......@@ -49,7 +49,7 @@ if nargin==1
fjac(3,2) = 0;
fjac(3,3) = 1;
end
elseif nargin
elseif ~nargin
if nargout==1
fval = [-1; 0; 0];
else
......
......@@ -36,7 +36,7 @@ if nargin==1
fjac(4,1) = 2*sqrt(10)*(x(1)-x(4));
fjac(4,4) = -fjac(4,1);
end
elseif nargin
elseif ~nargin
if nargout==1
fval = [3; -1; 0; 1];
else
......
......@@ -28,7 +28,7 @@ if nargin==1
fjac(2,1) = -exp(x(1));
fjac(2,2) = -exp(x(2));
end
elseif nargin
elseif ~nargin
if nargout==1
fval = [0; 1];
else
......
......@@ -28,7 +28,7 @@ if nargin==1
fjac(2,1) = -20*x(1);
fjac(2,2) = 10;
end
elseif nargin
elseif ~nargin
if nargout==1
fval = [10000; 1];
else
......
......@@ -45,7 +45,7 @@ if nargin==1
fjac(4,3) = -2*C6*x(3);
fjac(4,4) = C6+C4;
end
elseif nargin
elseif ~nargin
if nargout==1
fval = [-3; -1; -3; -1];
else
......
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