@sym: subsindex (x) ¶@sym: A(sym(x)) ¶Used to implement indexing by sym.
Note returns zero-based index.
This function should not need to be called directly, but it is used internally, for example in:
A = sym([10 11]);
A(sym(1))
⇒ (sym) 10
A(sym(2)) = sym('x')
⇒ A = (sym) [10 x] (1×2 matrix)
See also: @@sym/subsref, @@sym/subsasgn, @@sym/end.
Package: symbolic