Matlab don't support a<b<c, based on operator precedence
a<b<c = (a<b)<c
is basically comparing (0 or 1) with the value of c
if a,b,c is numerical value, use
(a<b)&&(b<c)
if a,b,c is array or matrices, use
(a<b)&(b<c)
Matlab don't support a<b<c, based on operator precedence
a<b<c = (a<b)<c
is basically comparing (0 or 1) with the value of c
if a,b,c is numerical value, use
(a<b)&&(b<c)
if a,b,c is array or matrices, use
(a<b)&(b<c)