14.3.6 Product of elements of each column of a matrix
The product command can multiply the
elements of the columns of a matrix
(see Section 6.3.27 for other things product can do).
-
product takes
A, a matrix.
- product(A) returns the list whose elements are the
product of the elements of each column of the matrix A.
Example