<< triang FOSSEE Signal Processing Toolbox truth >>

FOSSEE Signal Processing Toolbox >> FOSSEE Signal Processing Toolbox > tripuls

tripuls

Calling Sequence

[y] = tripuls(t)
[y] = tripuls(t,w)
[y] = tripuls(t,w,skew)

Parameters

t:

vector of real or complex numbers

w:

real or complex number

skew:

real number, -1 <= s <= 1

Description

This function generates a triangular pulse which is sampled at times t over the interval [-w/2,w/2]. The value of skew lies between -1 and 1. The value of skew represents the relative placement of the peak in the given width.

Examples

tripuls([0, .5, .6, 1], 0.9)
ans =
1   0   0   0
This function being called from Octave

Report an issue
<< triang FOSSEE Signal Processing Toolbox truth >>