rectpulse (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: waveform generation

Requires: MathScript RT Module

Syntax

c = rectpulse (a)

c = rectpulse (a, b)

Legacy Name: rectpuls

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.

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 Not characterized

Examples

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

Related Topics

chirp
dirichlet
gaussmonopulse
gausspulse
pulsetrain
sawtooth
sinc
square
tripulse
vco

文章是否对您有帮助?

没有帮助