I was working with simple matrix and got something weird.
A =
2 3
5 6
8 9
And I did this.
A([1 3],[1 2 2])
ans =
2 3 3
8 9 9
And I did this.
A([1 3],[1 2])
ans =
2 3
8 9
I can't figure out why MatLab is having that result.
Or, more generally, what does A(input) do in the most general input?