Borrar filtros
Borrar filtros

Sum of vector involving relational operations

3 visualizaciones (últimos 30 días)
lauuser1
lauuser1 el 25 de Feb. de 2016
Comentada: Star Strider el 25 de Feb. de 2016
When given something such as
x=[0:.5:10]'
why does
sum(x>8 & x<=4) = 0

Respuesta aceptada

Star Strider
Star Strider el 25 de Feb. de 2016
Think about it. Here no ‘x’ can simultaneously be >8 and <=4.
  2 comentarios
lauuser1
lauuser1 el 25 de Feb. de 2016
Oh okay, I get it. Thank you!
Star Strider
Star Strider el 25 de Feb. de 2016
My pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by