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

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

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the support class.

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 numeric object or string.

Outputs

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

Examples

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

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

aString = 'abcdef'
length(aString)

Related Topics

size


Resources


 

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