Boolen logic operations between integer numbers
1 view (last 30 days)
Show older comments
Josh Shamir
on 22 Nov 2016
Commented: Josh Shamir
on 22 Nov 2016
Dear All,
I would like to know the reasons why this happens:
>> 3 && -4
ans =
1
Thanks in advance for your kindly support.
Best Regards,
Josh
0 Comments
Accepted Answer
Alexandra Harkai
on 22 Nov 2016
Edited: Alexandra Harkai
on 22 Nov 2016
>> logical(3)
ans =
1
>> logical(-4)
ans =
1
More Answers (0)
See Also
Categories
Find more on Satellite and Orbital Mechanics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!