Method on @sym: subsref (f, idx)
Operator on @sym: f(i)
Operator on @sym: f(i, j)
Operator on @sym: f(i:j)
Operator on @sym: f.property

Access entries of a symbolic array.

Examples:

A = sym([10 11 12]);
A(2)
  ⇒ (sym) 11

A(2:3)
  ⇒ (sym) [11  12]  (1×2 matrix)

A(1, 1)
  ⇒ (sym) 10

A.flat
  ⇒ Matrix([[10, 11, 12]])

See also: @sym/subsasgn, @sym/subsindex, @sym/end.

Package: symbolic