Method on @symfun: subsref (f, idx)
Operator on @symfun: f(x)

Evaluate a symfun at a particular value.

Example:

syms x
f(x) = sin(x);
f(2)
  ⇒ (sym) sin(2)

syms h(x, y)
h(2, 3)
  ⇒ (sym) h(2, 3)

See also: @sym/subsref.

Package: symbolic