필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to use the compare signal in m-file (>/<)

조회 수: 3 (최근 30일)
mayuresh
mayuresh 2012년 7월 25일
마감: MATLAB Answer Bot 2021년 8월 20일
m-file

답변 (1개)

Walter Roberson
Walter Roberson 2012년 7월 25일
If you are comparing vectors or arrays, please be sure to note this behavior of if
An evaluated expression is true when the result is nonempty and contains all nonzero elements (logical or real numeric). Otherwise, the expression is false.
So when you have
if A < B
and A or B is a vector (or a matrix) then the "if" is only considered true if all A < B are true.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by