Download Help (Windows Only) 
Owning Class: basic
Requires: MathScript RT Module
c = prod(a)
c = prod(a, b)
Computes the product of vectors and matrices.
Name  Description  

a  Specifies a vector or matrix of doubleprecision, floatingpoint or complex doubleprecision, floatingpoint numbers.  
b  Specifies the dimension along which to compute the product. b accepts the following values.

Name  Description 

c  Returns the product of a. If a is a vector, c returns the product of all elements in a. If a is a matrix, c returns the columnwise products of the elements in a. c is a scalar or vector. 
The following table lists the support characteristics of this function.
Supported in the LabVIEW RunTime Engine  Yes 
Supported on RT targets  Yes 
Suitable for bounded execution times on RT  Yes 
A = [1:1:15]
C = prod(A)
A = [1, 2, 3, 4; 5, 6, 7, 8; 9, 10, 11, 12]
prod(A, 1)
prod(A, 2)