Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

diff (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the vector class.

Syntax

c = diff(a)

c = diff(a, b)

Description

Computes the differences between the first order and higher orders of a vector or matrix.

Examples

Inputs

Name Description
a Specifies a vector or matrix.
b Specifies the order of a to compare with the first order. b is an integer.

Outputs

Name Description
c Returns the differences between the first order and the b order of a. If a is a matrix, c returns row-wise differences. c is a vector or matrix.

Examples

A = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31]
C = diff(A, 2)

Related Topics

prod
sum


Resources


 

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