accumsums (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: basic

Requires: MathScript RT Module

Syntax

c = accumsums(a)

c = accumsums(a, b)

Legacy Name: cumsum

Description

Computes the cumulative sums 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 sums when a is a matrix. b is an integer that accepts the following values.

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

Outputs

Name Description
c Returns the cumulative sums 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 sums of a. If a is a matrix and you do not specify b, c returns a matrix whose elements are the column-wise cumulative sums 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 = accumsums(A)

Related Topics

accumproducts
prod
sum

文章是否对您有帮助?

没有帮助