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

impls_fn(t, delta)
%	A function generating a rectangular approximation for
%	the unit impulse function; width is delta
%
function imp = impls_fn(t, delta)
imp = zeros(size(t));
imp = (stp_fn(t+delta/2)-stp_fn(t-delta/2))/delta;

Contact us at files@mathworks.com