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

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

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the waveform generation class.

Syntax

c = linspace(a, b)

c = linspace(a, b, n)

Description

Generates equally distributed samples that lie between two values.

Examples

Inputs

Name Description
a Specifies the lowest value of the range from which you want to take the samples. a is a scalar.
b Specifies the highest value of the range from which you want to take the samples. b is a scalar.
n Specifies the number of samples to generate. n is an integer. The default is 100.

Outputs

Name Description
c Returns n equally distributed samples between a and b. c is a vector.

Examples

C = linspace(1, 10, 30)

Related Topics

logspace


Resources


 

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