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개)

Star Strider
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에 대해 자세히 알아보기

태그

질문:

2017년 6월 4일

댓글:

2017년 6월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by