No BSD License  

Highlights from
Signals & Systems: Continuous and Discrete, 4e Companion Software

from Signals & Systems: Continuous and Discrete, 4e Companion Software by Rodger Ziemer
Companion Software for Signals & Systems: Continuous and Discrete, 4e

trngl_fn(t)
%	This function generates a triangle centered at zero
%	and extending from -1 to 1
%
function tri = trngl_fn(t)
tri = rmp_fn(t+1)-2*rmp_fn(t)+rmp_fn(t-1);

Contact us at files@mathworks.com