Method on @sym: prod (x)
Method on @sym: prod (x, n)

Product of symbolic expressions.

Example:

syms x y z
prod([x y z])
  ⇒ (sym) x⋅y⋅z

Can specify row or column sums using n:

f = prod([x y; x z], 1)
  ⇒ f = (sym 1×2 matrix)

      ⎡ 2     ⎤
      ⎣x   y⋅z⎦

f = prod([x y; x z], 2)
  ⇒ f = (sym 2×1 matrix)

      ⎡x⋅y⎤
      ⎢   ⎥
      ⎣x⋅z⎦

See also: @sym/sum, @sym/symprod.

Package: symbolic