Sum of vector involving relational operations

1 view (last 30 days)
When given something such as
x=[0:.5:10]'
why does
sum(x>8 & x<=4) = 0

Accepted Answer

Star Strider
Star Strider on 25 Feb 2016
Think about it. Here no ‘x’ can simultaneously be >8 and <=4.

More Answers (0)

Categories

Find more on Get Started with MATLAB 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!