changeset 138:0de65c450b08

Fix bug
author gedeone-octave <marcovass89@hotmail.it>
date Fri, 06 Sep 2013 19:16:59 +0200
parents 3a0f952a79ec
children a02811631f71
files inst/Constant.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/inst/Constant.m	Fri Sep 06 14:56:59 2013 +0200
+++ b/inst/Constant.m	Fri Sep 06 19:16:59 2013 +0200
@@ -21,7 +21,7 @@
 ## @seealso{Expression, Function} 
 ## @end deftypefn
 
-function c = Constant (name, x)
+function c = Constant (name, xx)
 
   if nargin != 2
     error ("Constant: wrong number of input parameters.");
@@ -31,6 +31,6 @@
     error ("Constant: second argument is not a valid string");
   endif
 
-  c = Expression (name, @(x, y) x);
+  c = Expression (name, @(x, y, z) xx);
 
 endfunction