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

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

[Octave-bug-tracker] [bug #42408] Matlab incompatible results for isequa


From: Rik
Subject: [Octave-bug-tracker] [bug #42408] Matlab incompatible results for isequal() with character/double comparisions
Date: Sun, 25 May 2014 17:39:07 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0

Update of bug #42408 (project octave):

                 Summary: Incorrect results of isequal() with empty sparse
matrices and alphanumerical value comparision. => Matlab incompatible results
for isequal() with character/double comparisions

    _______________________________________________________

Follow-up Comment #3:

I checked in a change that matches the return sizes Matlab uses for uncommon
inputs (like 0x1, 1x0, 1x1 (but empty))
(http://hg.savannah.gnu.org/hgweb/octave/rev/a5286fb173cd).  That takes care
of the first problem which is the worst.

The other two comparisons are because Matlab seems to internally promote
characters to a numeric class.  Could you try running these experiments?

 

x = single (83);
y = single (84);
isequal ([x y], 'ST')
x = complex (83, 0)
isequal (x, 'S')
isequal (uint8 (83), 'S')



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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