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

rectpuls (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 = rectpuls (a)

c = rectpuls (a, b)

Description

Generates a rectangular wave that consists of zeros and ones. If b is the width of the rectangular pulse, the wave is 1 in the interval [-b/2, b/2] and 0 elsewhere.

Examples

Inputs

Name Description
a Specifies the sampling time. a is a real array.
b Specifies the width of the rectangle. b is a positive number. The default is 1.

Outputs

Name Description
c Returns the sampled rectangle.

Examples

X = -1:0.02:1;
Y = rectpuls(X, 1);
plot(X, Y)

Related Topics

chirp
diric
gauspuls
gmonopuls
pulstran
sawtooth
sinc
square
tripuls
vco


Resources


 

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