summaryrefslogtreecommitdiff
path: root/macros/fminunc.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/fminunc.sci')
-rw-r--r--macros/fminunc.sci4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/fminunc.sci b/macros/fminunc.sci
index 07fa92a..f39c312 100644
--- a/macros/fminunc.sci
+++ b/macros/fminunc.sci
@@ -152,8 +152,8 @@ function [xopt,fopt,exitflag,output,gradient,hessian] = fminunc (varargin)
fun = varargin(1);
x0 = varargin(2);
- //To check whether the 1st Input argument(f) is a function or not
- if (type(f) ~= 13 & type(f) ~= 11) then
+ //To check whether the 1st Input argument(fun) is a function or not
+ if (type(fun) ~= 13 & type(fun) ~= 11) then
errmsg = msprintf(gettext("%s: Expected function for Objective "), "fminunc");
error(errmsg);
end