MATLAB syntax of (:)
- by user198729
>> I=[2 1 3;3 2 4]
I =
2 1 3
3 2 4
>> I(:)
ans =
2
3
1
2
3
4
>> I(1:2)
ans =
2 3
>>
Why the first call I(:) returns a vector while the second I(1:2) doesn't which is essentially the same as I(:)?