octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #33531] ismember Matlab compatibility issue


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #33531] ismember Matlab compatibility issue
Date: Sun, 12 Jun 2011 19:39:59 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110430 Iceweasel/3.5.19 (like Firefox/3.5.19)

Follow-up Comment #1, bug #33531 (project octave):

The Matlab docs don't seem to say anything about the arguments to ismember
being logical, but if that is allowed, why should logical values be converted
to numeric values?

What are the rules for comparison here?  Does class have to match exactly, or
are there some loose and undocumented conversion rules at work?  For example,
what happens for


ismember (2 < 3, int8 ([0, 1]))
ismember (1, int8 ([0, 1]))
ismember (int16 (1), int8 ([0, 1]))


?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33531>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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