I wanted to replace the values within specific range to its positive values, something like:
X(X<a && X>b)=abs(X(X<a && X>b))
However I get error saying that
Operands to the || and && operators must be convertible to logical scalar values.
Any ideas how to fix it? Thanks!