An expression exists that is equivalent to a : b : c : d
.
Although MATLAB will execute the code, it is unlikely to return your intended
results.
For example, suppose your code is this:
a:b+c:d+a:b
Due to operator precedence rules, MATLAB processes the code as though you specified parenthesis, like this:
a:(b+c):(d+a):b
Rewrite the code to remove one or more of the colons.
For more information, see “Operator Precedence”.