octave-maintainers
[Top][All Lists]
Advanced

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

Re: gsoc2013 octave audio system


From: Vytautas Jancauskas
Subject: Re: gsoc2013 octave audio system
Date: Sat, 20 Apr 2013 11:55:45 +0300

On Sat, Apr 20, 2013 at 12:07 AM, John W. Eaton <address@hidden> wrote:
> On 04/19/2013 04:13 PM, Vytautas Jancauskas wrote:
>>
>> On Fri, Apr 19, 2013 at 2:42 AM, John W. Eaton<address@hidden>  wrote:
>>>
>>> On 04/18/2013 05:36 PM, Vytautas Jancauskas wrote:
>>>
>>>> Thanks, I updated the code with these suggestions.
>>>> How come when I run audiodevinfo(1), args(0).is_integer_type() returns
>>>> 0? what check do I use to see if the argument is an integer?
>>>
>>>
>>>
>>> Because in Octave, a constant like 1 is a double precision value.  This
>>> behavior is required for Matlab compatibility.
>>>
>>> But that doesn't matter much, you can extract an integer.
>>>
>>> Also, if possible, we avoid inquiring about value types.  Instead,
>>> attempt
>>> to extract the type of value you want and check to see whether the
>>> operation
>>> succeeded.
>>>
>>> jwe
>>
>>
>> How do I check if that operation succeeded?
>
>
> Check error_state after the operation.  Look at some examples from the
> Octave sources.  Nearly every DEFUN function does this sort of operation.
>
> Also, please CC the mailing list.
>
> Thanks,
>
> jwe

Sorry, forgot to click Reply to all.
How important is matlab compatibility to octave users? Should it be
strived for even if solution becomes less than ideal?


reply via email to

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