[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
int8(0) == int16(0) [ was Re: int8(0)==0 ? ]
From: |
Josep Monés i Teixidor |
Subject: |
int8(0) == int16(0) [ was Re: int8(0)==0 ? ] |
Date: |
Fri, 03 Sep 2004 18:29:41 +0200 |
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
signature.asc
Description: This is a digitally signed message part
- int8(0)==0 ?, Josep Monés i Teixidor, 2004/09/02
- Re: int8(0)==0 ?, Soren Hauberg, 2004/09/02
- int8(0) == int16(0) [ was Re: int8(0)==0 ? ],
Josep Monés i Teixidor <=