Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

accumtrapint (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: basic

Requires: MathScript RT Module

Syntax

c = accumtrapint(a)

c = accumtrapint(a, b)

Legacy Name: cumtrapz

Description

Computes the cumulative trapezoidal integrals of a vector or matrix.

Examples

Inputs

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

1 (default) Computes the column-wise cumulative trapezoidal integrals.
2 Computes the row-wise cumulative trapezoidal integrals.

Outputs

Name Description
c Returns the cumulative trapezoidal integrals of a. If a is a vector, c returns a vector of the cumulative trapezoidal integrals of a. If a is a matrix and you do not specify b, c returns a matrix whose elements are the column-wise cumulative trapezoidal integrals of a. c is a vector or matrix of the same size as 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:0.1:3];
B = A.^2;
C = accumtrapint(B)

Related Topics

quada_double
quada_nc8
quada_triple


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit