PRACTICAL MATLAB® FOR ENGINEERS PRACTICAL MATLAB

(sharon) #1

Time Domain Representation of Continuous and Discrete Signals 79


Various moving averages
10

5

0

signal
signal+noise
moving ave/2term

signal
signal+noise
moving ave/3term

signal
signal+noise
moving ave/4term

(^02468101214161820)
magnitude
magnitude
magnitude
10
10
5
5
0
0
0
0
2
2
4
4
6
6
8
8
10
10
12
12
14
14
16
16
18
18
20
20
time index n
FIGURE 1.64
Plots of various moving averages of Example 1.15.
FIGURE 1.65
Plots of f(n), [f(n) + n(t)], and best moving average of Example 1.15.
Best approximation using moving averages
signal
signal+noise
moving ave/2term
7 6 5 4 3 2 1 0
0 2 4 6 8 10 12 14 16 18 20
magnitude
time index n

Free download pdf