Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


Corey
Posts:
3
Registered:
5/2/12


Re: Or statement not behaving properly?
Posted:
May 2, 2012 7:10 AM


Nevermind. I was being stupid. Argument must go inside the OR. It must be too late. I would delete my original post but I am not sure how to as I'm new to this forum. "Corey " <Busayc@berkeley.edu> wrote in message <jnr3oe$86s$1@newscl01ah.mathworks.com>... > Hello all, > I have what I think is an easy question, but apparently I just can't see what is incorrect (perhaps it is too late). > I think that the OR operator is not working correctly. If I type in the following, I get: > >> b > b = > 5 > >> b == (2  5) > ans = > 0 > >> b == or(3,5) > ans = > 0 > Why is this returning 0? b does infact equal 5. So why does it return zero, ie false? > > I have a feeling the answer is incredibly simple, but for the life of me I can't see it. > Any help is appreciated. > > Thanks.



