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

length (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

Owning Class: support

Requires: MathScript RT Module

Syntax

n = length(a)

Description

Computes the length of a numeric object or string. The length of a matrix is the number of rows or columns in the matrix, depending on which is larger. The length of a string is the number of characters in the string.

Examples

Inputs

Name Description
a Specifies a scalar, vector, or matrix of any data type.

Outputs

Name Description
n Returns the length of a. n is a scalar.

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 Yes

Examples

VECTOR = [0, 3, -4.5, 2, 4, 7]
length(VECTOR)

MATRIX = rand(4, 5)
length(MATRIX)

aString = 'abcdef'
length(aString)

Related Topics

size


 

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