problem in showing result
1 次查看(过去 30 天)
显示 更早的评论
Hi everyone
I've written this code (this is part of my main code).
x11Range=[minValue11, maxValue11];
minValue11<= x11 <= maxValue11
and the result after run is:
ans =
(610000 <= x11) <= 33683000
but i expect this answer (without any paranthesis):
610000 <= x11 <= 33683000
I dont understand why paranthesis is in result.
im using R2015b version.
I really appreciate your help.
1 个评论
采纳的回答
Jan
2022-3-24
Matlab evaluates an expression from left to right. So there is no difference between
610000 <= x11 <= 33683000
and
(610000 <= x11) <= 33683000
Do you want to check, if all values of X11 are between the given values? Then:
610000 <= x11 & x11 <= 33683000
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!