# problem in showing result

3 views (last 30 days)
shirin mhd on 24 Mar 2022
Commented: shirin mhd on 25 Mar 2022
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.
Jan on 24 Mar 2022
Edited: Jan on 24 Mar 2022
The question is not clear. Where does "(610000 <= x11) <= 33683000" appear? Which code does produce this answer?
Posting the relevant part of your code would be useful.

Jan on 24 Mar 2022
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
shirin mhd on 25 Mar 2022
thanks alot.I understand the concept.