필터 지우기
필터 지우기

Sum of vector involving relational operations

조회 수: 3 (최근 30일)
lauuser1
lauuser1 2016년 2월 25일
댓글: Star Strider 2016년 2월 25일
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.
  댓글 수: 2
lauuser1
lauuser1 2016년 2월 25일
Oh okay, I get it. Thank you!
Star Strider
Star Strider 2016년 2월 25일
My pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by