bitor
Ajith Kamath
amkamath at arraycomm.com
Mon May 5 20:13:08 CDT 2008
Thanks for the workaround Bill.
Ajith
-----Original Message-----
From: Bill Denney [mailto:wsloand at gmail.com] On Behalf Of Bill Denney
Sent: Monday, May 05, 2008 6:04 PM
To: Ajith Kamath
Cc: bug at octave.org
Subject: Re: bitor
Ajith Kamath wrote:
> Hi,
>
> I am unable to evaluate expressions of this type:
>
> bitor(1 == 1,2 == 2)
>
> Octave Output:
> error: bitor: invalid operand type
>
> Matlab output:
>
> ans =
>
> 1
>
Hello Ajith,
I won't disagree that this is a bug, but a simple workaround for this is just using regular or:
1 == 1 || 2 == 2
Or if you have a vector:
[1 1] == [1 1] | [2 2] == [2 2]
Have a good day,
Bill
More information about the Bug-octave
mailing list