help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with inputParser and anonymous functions for validators


From: Ben Abbott
Subject: Re: Problem with inputParser and anonymous functions for validators
Date: Fri, 21 Sep 2012 16:09:13 -0400

On Sep 21, 2012, at 2:59 PM, Jose wrote:

> Hello.
> 
> On 09/21/2012 09:33 PM, Ben Abbott wrote:
> 
>> What you need to do is either
>> 
>> (1) addRequired (p, "pack", val)
>> 
>> or
>> 
>> (2) addRequired (p, "pack", @(x)ischar(x))
>> 
>> or
>> 
>> (3) addRequired (p, "pack", @ischar)
> 
> Thanks Ben. It works.
> 
> It seems then that the documentation is not correct (See the example in "help 
> inputParser" and 
> http://octave.sourceforge.net/general/function/@inputParser/inputParser.html 
> ).
> 
> BR
> Jose
> 

I think you are correct. There appears to be a problem with the documentation.  
I've cc'd the author.


Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]