changeset 10884:51436083c2be octave-forge

general: Fixing error in documentation when passing function handles to inputParser.
author jpicarbajal
date Sat, 22 Sep 2012 08:40:14 +0000
parents 2735eae9f9a2
children 2da87dcd2135
files main/general/inst/@inputParser/inputParser.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/general/inst/@inputParser/inputParser.m	Sat Sep 22 08:15:06 2012 +0000
+++ b/main/general/inst/@inputParser/inputParser.m	Sat Sep 22 08:40:14 2012 +0000
@@ -75,7 +75,7 @@
 ##
 ##     ## one can create a function handle to anonymous functions for validators
 ##     val_mat = @@(x)isvector(x) && all( x <= 1) && all(x >= 0);
-##     p = p.addOptional ("mat", [0 0], @@val_mat);
+##     p = p.addOptional ("mat", [0 0], val_mat);
 ##
 ##     ## create two ParamValue type of arguments
 ##     val_type = @@(x) ischar(x) && any(strcmp(x, @{"linear", "quadratic"@});