Help with combining logical and relational operators
이전 댓글 표시
Hi, Is there a way I can shorten this statement without having to write x twice?
if x>=6 && x<10
댓글 수: 1
Stephen23
2017년 6월 4일
Why? What is the problem with writing it twice?
답변 (1개)
Star Strider
2017년 6월 4일
0 개 추천
No.
That is the correct way to constrain ‘x’ to be greater than or equal to 6 and less than 10.
카테고리
도움말 센터 및 File Exchange에서 Simulink Report Generator에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!