R = prod(M)
R = prod(M, d)
R = prod(M, d)
R = prod(M, d, t)
R = prod(M, d, t, f)
| Parameter | Description |
|---|---|
| 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'. |
| Parameter | Description |
|---|---|
| R | Product of array elements. |
R = prod(M) returns the product of the array elements of M.
M = uint8([10:30:70;20:30:80;30:30:90]);
R = prod(M, 'native')
| Version | Description |
|---|---|
| 1.0.0 | initial version |