the if statement with and/or
조회 수: 3 (최근 30일)
이전 댓글 표시
Is this right?
If a and b and c and d <= 100 {statement} end
댓글 수: 2
Chad Greene
2014년 6월 17일
Your question is not very clear. What do your data look like and what is your goal?
Geoff Hayes
2014년 6월 17일
No, that statement is incorrect. In the Command Window, type help if or doc if for details on constructing an if statement and how relational operators are used in compound expressions.
채택된 답변
Azzi Abdelmalek
2014년 6월 17일
편집: Azzi Abdelmalek
2014년 6월 17일
if a<100&b<100&c<100&d<100
%do
end
%or
if all([a b c d]<100)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!