I don't know Matlab but I believe what you are after is length as used
below.

function demo (x...)
     length (x)
end

demo(3, 4, 5)

3
 On Apr 1, 2014 7:14 AM, "Adrian Torrie" <[email protected]> wrote:

> As the title says, is there an equivalent?
>
> If not, would setting optional args to a ridiculous value, e.g.
> -999999999999, and then  testing for which args have/don't have that value
> suffice to determine the number of args passed through.
>
> I'm trying to port some MATLAB code I found on the interwebs.
>

Reply via email to