octave-maintainers
[Top][All Lists]
Advanced

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

Re: ismember with empty arguments


From: Jaroslav Hajek
Subject: Re: ismember with empty arguments
Date: Fri, 16 Oct 2009 14:29:00 +0200

On Fri, Oct 16, 2009 at 11:33 AM, Marco Caliari <address@hidden> wrote:
> Dear maintainers,
>
> I discovered a different behaviour between Octave and Matlab for the
> function ismember when the option 'rows' is given and one of the two
> arguments is empty.
> In Matlab:
>
>>> ismember(ones(2),[],'rows')
>
> ans =
>
>     0
>     0
>>>
>>> ismember([],ones(2),'rows')
>
> ans =
>
>   Empty matrix: 0-by-1
>>>
>>> ismember([],[],'rows')
>
> ans =
>
>   Empty matrix: 0-by-1
>
> Although I don't completely understand this behaviour, I enclosed a patch
> (against 3.2.3) which reproduces it.
>
> Changelog
>
> 2009-10-16  Marco Caliari  <address@hidden>
>
>        * ismember.m: Fix behaviour for empty arguments.
>
> Marco

Since you patch doesn't apply to development sources, I created another:
http://hg.savannah.gnu.org/hgweb/octave/rev/aab4f2aa9ed9

thanks

-- 
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

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