Skip to Main Content Skip to Search
Product Documentation

tripuls - Sampled aperiodic triangle

Syntax

y=tripuls(T)
y=tripuls(T,w)
y=tripuls(T,w,s)

Description

y = tripuls(T) returns a continuous, aperiodic, symmetric, unity-height triangular pulse at the times indicated in array T, centered about T=0 and with a default width of 1.

y = tripuls(T,w) generates a triangular pulse of width w.

y = tripuls(T,w,s) generates a triangular pulse with skew s, where -1 < s < 1. When s is 0, a symmetric triangular pulse is generated.

Examples

Create a triangular pulse with width 0.4.

fs = 10000;
t = -1:1/fs:1;
w = .4;
x = tripuls(t,w);
figure,plot(t,x)
xlabel('Time (sec)');ylabel('Amplitude'); 
title('Triangular Aperiodic Pulse')

See Also

chirp | cos | diric | gauspuls | pulstran | rectpuls | sawtooth | sin | square | tripuls

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS