652 Practical MATLAB® Applications for Engineers
tf(coefbp,1,-1)
disp(‘***********************************************’)
disp(‘ The coefficients of the FIR/BPF using remez are:’)
disp(num)
tf(num,den,-1)
disp(‘***********************************************’)
Back in the command window, the script fi le designs is executed, and the results are
indicated as follows (Figures 6.76 through 6.78):
>> designs
***********************************************
* * * * R E S U L T S * * * *
***********************************************
***********************************************
The coefficients of the FIR/LPF using fir1 are:
Columns 1 through 8
0.0023 0.0041 0.0026 -0.0096 -0.0292 -0.0289 0.0252 0.1346
Columns 9 through 16
0.2495 0.2990 0.2495 0.1346 0.0252 -0.0289 -0.0292 -0.0096
Columns 17 through 19
0.0026 0.0041 0.0023
Transfer function:
0.002281 z^18 + 0.004063 z^17 + 0.002627 z^16 - 0.009633 z^15 - 0.02919 z^14
- 0.02889 z^13 + 0.02516 z^12 + 0.1346 z^11 + 0.2495 z^10
- 0.299 z^9 + 0.2495 z^8 + 0.1346 z^7 + 0.02516 z^6 - 0.02889 z^5
- 0.02919 z^4 - 0.009633 z^3 + 0.002627 z^2 + 0.004063 z + 0.002281
Sampling time: unspecified
The coefficients of the FIR/BPF using fir1 are:
Columns 1 through 8
0.0098 -0.0204 -0.1323 0.0391 0.3000 0.0391 -0.1323 -0.0204
Column 9
0.0098
Transfer function:
0.009797 z^8 - 0.02043 z^7 - 0.1323 z^6 + 0.03912 z^5 + 0.3 z^4 + 0.03912 z^3
- 0.1323 z^2 - 0.02043 z + 0.009797
Sampling time: unspecified
The coefficients of the FIR/BPF using remez are:
Columns 1 through 8
0.1603 -0.1661 -0.3275 0.0244 0.3346 0.0244 -0.3275 -0.1661
Column 9
0.1603
Transfer function:
0.1603 z^8 - 0.1661 z^7 - 0.3275 z^6 + 0.02438 z^5 + 0.3346 z^4 + 0.02438 z^3
- 0.3275 z^2 - 0.1661 z + 0.1603
Sampling time: unspecified