From what I can tell, the arrays a:d:b and [a:d:b] are exactly the same thing. For example,
>> [1:3] == 1:3 ans = 1×3 logical array 1 1 1
Yet, these two expressions give different results:
>> [1:3]' + 1:3 ans = 2 3 >> [1:3]' + [1:3] ans = 2 3 4 3 4 5 4 5 6
Why?
Best Answer