What is empty index notation?

It does that because indices may be omitted if all the trailing dimensions are of length 1. This implies that, for a 1-element Array, x[] is equivalent to x[1], irrespective of how many dimensions the array has.

I am uncertain if Matlab does the same.

5 Likes