bitor

Bill Denney bill at denney.ws
Mon May 5 20:04:19 CDT 2008


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