[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: int8(0) == int16(0) [ was Re: int8(0)==0 ? ]
From: |
Ciotti, Louis A |
Subject: |
RE: int8(0) == int16(0) [ was Re: int8(0)==0 ? ] |
Date: |
Fri, 3 Sep 2004 12:35:51 -0400 |
Matlab ver. 6.5:
>> int8(0)==int16(0)
ans =
1
>>
-----Original Message-----
From: Josep Monés i Teixidor [mailto:address@hidden
Sent: Friday, September 03, 2004 12:30 PM
To: Llista help a octave.org
Subject: int8(0) == int16(0) [ was Re: int8(0)==0 ? ]
Hi!
I've tested now int8(0) == int16(0) and isequal(int8(0),int16(0)) and
these don't work. From documentation, I believe that MATLAB answers 1 to
both.
octave:164> int8(0)==int16(0)
error: binary operator `==' not implemented for `int8 scalar' by `int16
scalar' operations
error: evaluating binary operator `==' near line 164, column 8
octave:164> isequal(int8(0),int16(0))
error: can't perform indexing operations for int8 scalar type
error: evaluating binary operator `==' near line 54, column 22
error: evaluating argument list element number 1
error: evaluating assignment expression near line 54, column 9
error: evaluating if command near line 27, column 5
error: evaluating for command near line 25, column 3
error: called from `isequal' in file
`/home/josep/binaries/octave/share/octave/2.1.58/site/m/octave-forge/general/isequal.m'
Regards,
--
Josep Monés i Teixidor
Clau GnuPG: gpg --recv-keys 80E85CC4
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: int8(0) == int16(0) [ was Re: int8(0)==0 ? ],
Ciotti, Louis A <=