Method on @symfun: mtimes (f, g)
Operator on @symfun: f * g

Multiply symbolic functions.

Example:

syms x
f(x) = 2*x;
g(x) = sin(x);

h = f*g
  ⇒ h(x) = (symfun) 2⋅x⋅sin(x)

Matrix example:

syms x y
f(x, y) = sym([1 2; 3 4]);
g(x, y) = [x 0; 0 y];

h = f*g
  ⇒ h(x, y) = (symfun)
      ⎡ x   2⋅y⎤
      ⎢        ⎥
      ⎣3⋅x  4⋅y⎦

See also: @symfun/times.

Package: symbolic