Function Reference
— Built-in Function: prod (x, dim)

Product of elements along dimension dim. If dim is omitted, it defaults to 1 (column-wise products).

As a special case, if x is a vector and dim is omitted, return the product of the elements.