Sum of vector involving relational operations

1 次查看(过去 30 天)
When given something such as
x=[0:.5:10]'
why does
sum(x>8 & x<=4) = 0

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by