Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
how to use the compare signal in m-file (>/<)
조회 수: 3 (최근 30일)
이전 댓글 표시
답변 (1개)
Walter Roberson
2012년 7월 25일
See http://www.mathworks.com/help/techdoc/ref/lt.html and http://www.mathworks.com/help/techdoc/ref/gt.html
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.
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!