Help with combining logical and relational operators
Mostrar comentarios más antiguos
Hi, Is there a way I can shorten this statement without having to write x twice?
if x>=6 && x<10
1 comentario
Stephen23
el 4 de Jun. de 2017
Why? What is the problem with writing it twice?
Respuestas (1)
Star Strider
el 4 de Jun. de 2017
0 votos
No.
That is the correct way to constrain ‘x’ to be greater than or equal to 6 and less than 10.
Categorías
Más información sobre PHY Components en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!