Documentation Center

  • Trial Software
  • Product Updates

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

| | | | | | | | |

Was this topic helpful?