[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ismember with empty arguments
From: |
Marco Caliari |
Subject: |
ismember with empty arguments |
Date: |
Fri, 16 Oct 2009 11:33:41 +0200 (CEST) |
User-agent: |
Alpine 1.00 (DEB 882 2007-12-20) |
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
ismember.m.patch
Description: Text Data
- ismember with empty arguments,
Marco Caliari <=