Page 88 -
P. 88
FIGURE 3.3
Various useful signal processing functions.
• Unit area rectangle pulse
• Unit slope right angle triangle function
• Equilateral triangle function
• Periodic traces
These functions are plotted in Figure 3.3, and the corresponding function M-
files are (x is everywhere a scalar):
A. Unit Step function
function y=stepf(x)
global astep
if x<astep
y=0;
else
y=1;
end
© 2001 by CRC Press LLC