Display warning only if the "if "statement is not satisfied
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
Hi,
I want to create an if statement that will warn me ONLY if the “if “ is NOT satisfied
I tried initially,
if qs1==q2 | qs1==q3
'OK '
 else
     'Not ok'
    End
But this expression displays also “ok” if the if statement is satisfied. I want to get ONLY the warning “not ok” if the “if” statement is NOT satisfied.
If the if statement is satisfied then I do not want to display “ok”
thanks
댓글 수: 1
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!