[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
- Problem with inputParser and anonymous functions for validators, Jose, 2012/09/21
- Re: Problem with inputParser and anonymous functions for validators, Ben Abbott, 2012/09/21
- Message not available
- Re: Problem with inputParser and anonymous functions for validators,
Ben Abbott <=
- Re: Problem with inputParser and anonymous functions for validators, Juan Pablo Carbajal, 2012/09/22
- Re: Problem with inputParser and anonymous functions for validators, Jose, 2012/09/22
- Re: Problem with inputParser and anonymous functions for validators, Juan Pablo Carbajal, 2012/09/22
- Re: Problem with inputParser and anonymous functions for validators, Jose, 2012/09/26
- Re: [OctDev] Problem with inputParser and anonymous functions for validators, Juan Pablo Carbajal, 2012/09/26
- Re: [OctDev] Problem with inputParser and anonymous functions for validators, Juan Pablo Carbajal, 2012/09/26