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

sawtooth (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

s = sawtooth(t)

s = sawtooth(t, w)

Description

Generates a sawtooth wave with period 2*pi.

Examples

Inputs

Name Description
t Specifies the times at which to plot data for the sawtooth wave. t is a vector.
w Specifies the fraction of the wave period at which the maximum of the sawtooth wave occurs. w is a scalar between 0 and 1. The default is 1.

Outputs

Name Description
s Returns the sawtooth wave at times t with period 2*pi. s is a vector.

Examples

X = 0:0.01:6*pi;
Y = sawtooth(X, 0.5);
plot(X, Y)

Related Topics

gensig
square


Resources


 

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