From: <jpi...@us...> - 2012-09-22 08:40:20
|
Revision: 11070 http://octave.svn.sourceforge.net/octave/?rev=11070&view=rev Author: jpicarbajal Date: 2012-09-22 08:40:14 +0000 (Sat, 22 Sep 2012) Log Message: ----------- general: Fixing error in documentation when passing function handles to inputParser. Modified Paths: -------------- trunk/octave-forge/main/general/inst/@inputParser/inputParser.m Modified: trunk/octave-forge/main/general/inst/@inputParser/inputParser.m =================================================================== --- trunk/octave-forge/main/general/inst/@inputParser/inputParser.m 2012-09-22 08:15:06 UTC (rev 11069) +++ trunk/octave-forge/main/general/inst/@inputParser/inputParser.m 2012-09-22 08:40:14 UTC (rev 11070) @@ -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"@}); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |