prod(A) produces a row vector containing the row products of A if A is a matrix. If A is a row vector, it produces the product of the elements of A.