From 7:00 PM CST Friday, January 24th - 7:00 PM CST Sunday, January 26th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

accumproducts (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: basic

Requires: MathScript RT Module

Syntax

c = accumproducts(a)

c = accumproducts(a, b)

Legacy Name: cumprod

Description

Computes the cumulative products of vectors and matrices.

Examples

Inputs

Name Description
a Specifies a vector or matrix.
b Specifies whether to compute the column-wise or row-wise cumulative products when a is a matrix. b is an integer that accepts the following values.

1 Computes the column-wise cumulative products of a.
2 Computes the row-wise cumulative products of a.

Outputs

Name Description
c Returns the cumulative products of a. c is a vector or matrix of the same size as a. If a is a vector, c returns a vector of the cumulative products of a. If a is a matrix and you do not specify b, c returns a matrix whose elements are the column-wise cumulative products of a.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

A = [1:1:15]
C = accumproducts(A)

Related Topics

accumsums
prod
sum

WAS THIS ARTICLE HELPFUL?

Not Helpful