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

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

f = pulstran(a, b, c, d, e)

f = pulstran(a, b, c, d)

f = pulstran(a, b, c, e)

f = pulstran(a, b, c)

Description

Generates a pulse train from a sampled prototype pulse.

Examples

Inputs

Name Description
a Specifies the sampling time. a is a real array.
b Specifies the offsets. b is a real array or a 2D array with 2 columns. If b is a 1D array, f = c(a-b(1))+c(a-b(2))+... . Otherwise, f = b(1, 2)*c(a-b(1, 1))+b(2, 2)*c(a-b(2, 1))+... .
c Specifies the sampled prototype pulse. c is a real array.
d Specifies the alternative interpolation method. d is a string that accepts the following values.

'cubic' Performs cubic Hermite interpolation.
'linear' (default) Performs linear interpolation.
'nearest' Sets the interpolated value to the nearest data point.
'spline' Performs spline interpolation.
e Specifies the sampling rate of c. e is a positive number. The default is 1.

Outputs

Name Description
f Returns the sampled pulse train.

Examples

X1 = -1:0.1:1;
Y1 = tripuls(X1, 2, 0.2);
X2 = 0:0.1:20;
D = 0:5:20;
D = [D; 1:length(D)]';
Y2 = pulstran(X2, D, Y1, 10);
plot(X2, Y2)

Related Topics

chirp
diric
gauspuls
gmonopuls
rectpuls
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