Owning Class: waveform generation
Requires: MathScript RT Module
c = rectpulse (a)
c = rectpulse (a, b)
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.
|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.|
|c||Returns the sampled rectangle.|
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|
X = -1:0.02:1;
Y = rectpulse(X, 1);