Indices on expressions

Indices can be used on an expression. For example, if x and y are vectors of length 10, then (x+y) is also a vector of length 10, and an index can be used, such as (x+y)[3].

The special index characters # and * cannot be used in indices on expressions.

  Indices on functions
  Index as an expression