help-octave
[Top][All Lists]
Advanced

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

Re: Number of arguments of a fcn handle


From: c.
Subject: Re: Number of arguments of a fcn handle
Date: Mon, 7 Oct 2013 15:06:28 +0200

On 5 Oct 2013, at 11:31, marco Vassallo <address@hidden> wrote:

> Hi all,
>  In my DLD function I receive a function handle from the user and I need to 
> check the number of arguments
> (f = @(x, y) x*y has 2 arguments, f = @(x) sin (x) has 1 argument and so on)
> 
>  How can I do it?

I don't think you can, in Octave you can pass any number of inputs to a 
function independent of its signature.
Why do you need that?

>  Thanks
>  Marco        

c.

reply via email to

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