MATLAB has a binary operatorgt, e.g.A>B, but it does not have aternary operatorA>B>C. So your example
10>6>4
is exactly equivalent to this:
(10>6)>4
The part in the parentheses will only ever return the values 0 (false) or 1 (true), so the second comparison will always return false (unless you reduce the value 4 to 0 or less).
Best Answer