prod

Product of array elements.

📝 Syntax

  • R = prod(M)

  • R = prod(M, d)

  • R = prod(M, d)

  • R = prod(M, d, t)

  • R = prod(M, d, t, f)

📥 Input argument

  • M - an array of double, single, integers, ...

  • d - dimension to operate along: positive integer scalar.

  • t - a string: 'default', 'double' or 'native'.

  • f - a string: 'includenan' or 'omitnan'.

📤 Output argument

  • R - Product of array elements.

📄 Description

R = prod(M) returns the product of the array elements of M.

💡 Example

🔗 See also

ndims, sum.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?