probleme with the logical or ||
Reported by fangliu
BUG DESCRIPTION:
----------------
The result of || is wrong for vectors
ERROR LOG:
----------
The result doesn't see same with the help file which describes "For any boolean or numerical operands U and V, G = U || V is equivalent to if or(U), G = %T, else G = or(V), end."
HOW TO REPRODUCE THE BUG:
-------------------------
--> v1=[1 0 1 1]<>0
v1 =
T F T T
--> v2=[0 0 1 0]<>0
v2 =
F F T F
--> v1 || v2
ans =
F
--> if or(v1) then
> %t
> else
> or(v2)
> end
ans =
T
OTHER INFORMATION:
------------------