Biomedical Engineering Reference
In-Depth Information
%Plotting Results
subplot(221)
plot(t,h_lp,'k')
xlabel('Time (sec)')
ylabel('Amplitude')
subplot(222)
plot(faxis,H_lp,'k');
axis([0 Fs/2 0 1.2])
xlabel('Frequency (Hz)')
ylabel('Magnitude')
subplot(223)
plot(t,h_hp,'k')
xlabel('Time (sec)')
ylabel('Amplitude')
subplot(224)
plot(faxis,H_hp,'k');
axis([0 Fs/2 0 1.2])
xlabel('Frequency (Hz)')
ylabel('Magnitude')
The results are shown in Figure 11.22.
0.2
1
0.15
0.8
0.1
0.6
0.05
0.4
0
0.2
0.05
0 0
0.005
0
Delay (sec)
0.01
0.01
0.005
1000
2000
Frequency (Hz)
4000
5000
3000
(a)
(b)
FIGURE 11.22 Low-pass and high-pass FIR filter MATLAB simulation. (a) Hanning low-pass filter
impulse response and magnitude response (b).
Continued
Search WWH ::




Custom Search