[Top][All Lists]

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

[Octave-bug-tracker] [bug #44071] ismember fails to recognize set member

From: anonymous
Subject: [Octave-bug-tracker] [bug #44071] ismember fails to recognize set membership
Date: Fri, 23 Jan 2015 01:33:30 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0


                 Summary: ismember fails to recognize set membership
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 23 Jan 2015 01:33:28 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Henry Shu
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: GNU/Linux



Please load ismember_bug.mat attached

A is a scalar double of value 0.
s is a column vector of 299 double values containing at least one 0.
However, ismember failed to recognize the membership of A in s.

disp(any(s == A));  # Displays 1
disp(ismember(A, s));  # Displays 0, hence a bug


File Attachments:

Date: Fri 23 Jan 2015 01:33:28 AM UTC  Name: ismember_bug.mat  Size: 5kB   By:



Reply to this item at:


  Message sent via/by Savannah

reply via email to

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