octave-maintainers
[Top][All Lists]
Advanced

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

Re: stem series objects


From: Michael Goffioul
Subject: Re: stem series objects
Date: Mon, 25 Aug 2008 14:49:49 +0200

On Mon, Aug 25, 2008 at 2:22 PM, David Bateman
<address@hidden> wrote:
>> 3) the off-by-1 error was intentional. In Matlab, callbacks are
>> always called with at least 2 arguments: the handle of the object
>> and an optional data specific to the event (for instance, a keypress
>> event will contain information about the key pressed). Then other
>> possible arguments are appended, in case the callback has the
>> form address@hidden, p1, p2, ...}
>>
>
> yes, but then I saw that the function call had to have the form
>
> function fun (h, d, f, p1, p2)
>
> rather than
>
> function fun (h, d, p1, p2)
>
> as I would have expected from the documentation. Are you sure of your
> explanation? In any case I left my change to this in for now.

OK, I found the error: the starting index of the for-loop should be
1 instead of 0. The 2-offset for args should be left untouched. Can
you fix it?

Michael.


reply via email to

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