Anda di halaman 1dari 108

Percobaan V

Desain Filter IIR pada Matlab


Diki Dirgiantara (13116041)
Asisten : Fauzan Ghozi Al Ayubi (13115021)
Tanggal Percobaan : 27/10/2018
EL3104 Praktikum Peengolahan Sinyal Digital
Laboratorium Teknik Elektro
Institut Teknologi Sumatera

Tabel 2.1 Perbedaan filter IIR dan filter FIR


Abstrak—Berdasarkan praktikum yang telah dilakukan,
praktikan melakukan percobaan desain filter IIR pada matlab. Filter IIR Filter FIR
Praktikum ini menuntut praktikan mengerti dan mampu Lebih efisien Kurang efisien
mendesain filter IIR pada Matlab. Selain itu, praktikan dapat Membutuhkan sedikit Membutuhkan banyak
memahami perbedaan beberapa filter dan white noise. Filter- memori memori
filter tersebut yang digunkan antara lain filter butterworth,
Daya yang digunakan tinggi Daya yang digunakan
Chebyshev type 1, Chebyshev type 2, dan Elliptic.
Percobaan ini dilakukan dengan menggunakan bantuan sedikit
software Matlab. Fungsi dari Matlab digunakan untuk Memiliki bentuk rangkaian Tidak ada rangkaian analog
menampilkan plot-plot sinyal dari filter-filter yang dipakai analog
pada percobaan ini. Kurang stabil Lebih stabil
Delay sedikit Lebih banyak delay
Kata Kunci—Filter IIR, Filter Butterworth, Filter Chebyshev
type 1, Filter Chebyshev type 2, Filter Elliptic dan White noise.
B. JENIS-JENIS FILTER IIR
Pada praktikum kali ini, praktikan akan mendesain empat
I. PENDAHULUAN jenis filter IIR menggunakan Matlab. Yaitu filter Butterworth,
filter Chebyshev tipe 1 dan 2, serta filter Elliptic. Perbedaan
P ERCOBAAN yang telah dilakukan di percobaan V adalah
percobaan desain filter IIR pada Matlab. Filter IIR atau
Infinite Impulse Response bekerja dengan mengambil output
yang jelas dari filter-filter tersebut dapat dilihat dari contoh
respon impuls berikut.
sebagai feedback yang diolah oleh filter. Filter akan bekerja
sehingga menghasilkan respon tak terbatas. Pada percobaan
ini diperkenalkan jenis-jenis filter yang telah didesain
praktikan. Filter-filter tersebut Yaitu filter Butterworth, filter
Chebyshev tipe 1 dan 2, serta filter Elliptic.

II. LANDASAN TEORETIS

A. FILTER IIR
Filter IIR (Infinite Impulse Response) merupakan salah satu
dari jenis filter digital yang biasa digunakan pada proses
pemrosesan sinyal digital. IIR mengambil output sebagai
feedback untuk diolah kembali oleh filter sehingga Gambar 2.1 respon impulse filter Butterworth
menghasilkan respon impuls yang tak terbatas, maka dari itu
filter disebut sebagai filter IIR.
Berbeda dengan filter FIR yang sudah didesain pada
percobaan sebelumnya, filter IIR memiliki respon impuls
yang tak terbatas. Perbedaan dari kedua filter tersebut dapat
dilihat pada tabel berikut ini:
daya flat. Artinya sinyal white noise memiliki daya yang sama
pada bandwidth yang tetap pada setiap frekuensi tengah.
White noise merupakan nama yang diturunkan dari cahaya
putih yang spektrum daya dari cahayanya terdistribusi pada
rentang band cahaya tampak. Bandwidth dari white noise
terbatas pada prakteknya oleh mekanisme pembangkitan
noise, media transmisi. Sinyal random dapat dikatakan white
noise jika memiliki spektrum yang flat pada bandwidth
terlebar yang mungkin dapat dilewatkan pada sebuah medium.

III. METODOLOGI
A. Alat dan Bahan
 1 unit computer
Gambar 2.2 respon impulse filter Chebyshev type I
 Software Matlab
B. Langkah Kerja
Pastikan komputer yang akan digunakan berfungsi
dengan normal dan tidak ada masalah apapun

Software Matlab sudah terinstal dalam komputer.

3.2.1 White Noise


Buat white noise pada Matlab dengan memasukkan
perintah randn(1000,1). 1000 berarti akan ada 1000 titik
pada white noise yang dihasilkan.

Gambar 2.3 respon impulse filter Chebyshev type II


Periksa plot dan respon frekuensi dari white noise. Catat
dan analisis.
3.2.2 Desain filter IIR -1

Gambar 2.4 respon impulse filter Elliptic

C. WHITE NOISE
White noise adalah sinyal acak (random) dengan spektrum
Diketahui frekuensi sampling sebesar 16000 Hz. Filter Persiapkanlah sinyal input berupa sintot seperti pada modul
digital yang diinginkan adalah low- pass filter orde 5 1.
dengan frekuensi cut-off 1600 Hz.

Gunakanlah Matlab untuk men- desain jenis filter sebagai Rancanglah filter IIR berupa low-pass filter Butterworth
berikut : Filter butterworth. Filter Chebyshev tipe-1 orde 32 dengan frekuensi cut-off 800 Hz.
dengan passband ripple 10 dB. Filter Chebyshev tipe-2
dengan stopband attuenation 40 dB. Filter Elliptic dengan
passband ripple 10 dB dan stopband attuenation 40 dB.
Lakukan pem-filteran sinyal sintot dengan filter yang sudah
dibuat,kemudian amatilah plot dari hasilnya.

Amatilah respon frekuensi dari keempat filter yang sudah Ubah orde dari filter Butterworth menjadi orde 5, kemudian
didesain, lalu analisis. lakukan kembali proses pemfilteran dengan filter yang
baru.

Filter white noise yang sudah dibuat sebelumnya Amati plot dari hasilnya, dan bandingkan kedua plot.
menggunakan masing-masing filter yang sudah didesain. Analisis.

Amatilah respon frekuensi dari masing-masing jenis pem-


filteran, lalu analisis.

3.2.3 Desain filter IIR – 2


IV. HASIL DAN ANALISIS
Diketahui sebuah filter memiliki frekuensi passband = 1600
Hz, frekuensi stopband = 9600 Hz, passband ripple kurang A. Tugas I : White Noise
dari 3 dB, dan stopband attuenation minimal 60 dB. Berdasarkan praktikum yang telah dilakukan, praktikan
Rancanglah sebuah filter Butterworth menggunakan mendesain sinyal white noise dengan memasukkan perintah
Matlab. randn (1000,1). Dari perintah tersebut diperoleh 1000 titik
pada white noise.

Tabel 4.1 1000 titik pada White Noise


Gunakan perintah buttord untuk mencari orde dan frekuensi
cut-off dari filter yang diinginkan. Lalu rancanglah filter 0.2709
seperti pada bagian sebelumnya. 0.3313
0.3196
0.2633
0.1966
0.1465
0.1232
Amatilah respon frekuensi dari filter yang dihasilkan, lalu 0.1195
analisis. 0.1168
0.0954
0.0449
3.2.4 Membandingkan filter IIR dan FIR -0.0301
-0.1111
-0.1716
-0.1878
-0.1480
-0.0570
0.0647
0.1881
0.2852
0.3363
0.3348
0.2878 0.3784
0.2123 0.3626
0.1301 0.3022
0.0614 0.2214
0.0201 0.1436
0.0117 0.0846
0.0347 0.0498
0.0820 0.0355
0.1432 0.0319
0.2060 0.0274
0.2581 0.0134
0.2893 -0.0125
0.2920 -0.0449
0.2621 -0.0725
0.2000 -0.0834
0.1123 -0.0705
0.0124 -0.0364
-0.0824 0.0058
-0.1550 0.0356
-0.1929 0.0317
-0.1915 -0.0202
-0.1552 -0.1210
-0.0956 -0.2562
-0.0281 -0.3990
0.0325 -0.5177
0.0738 -0.5839
0.0868 -0.5811
0.0667 -0.5095
0.0150 -0.3868
-0.0592 -0.2440
-0.1399 -0.1179
-0.2084 -0.0410
-0.2483 -0.0330
-0.2501 -0.0956
-0.2141 -0.2131
-0.1505 -0.3579
-0.0763 -0.4990
-0.0111 -0.6096
0.0285 -0.6709
0.0341 -0.6722
0.0091 -0.6120
-0.0307 -0.4983
-0.0618 -0.3481
-0.0612 -0.1857
-0.0177 -0.0387
0.0621 0.0658
0.1532 0.1067
0.2219 0.0731
0.2380 -0.0319
0.1874 -0.1902
0.0779 -0.3701
-0.0617 -0.5325
-0.1914 -0.6402
-0.2723 -0.6681
-0.2791 -0.6102
-0.2079 -0.4810
-0.0767 -0.3108
0.0817 -0.1369
0.2292 0.0061
0.3340 0.0952
0.1225 -0.2944
0.0950 -0.2393
0.0309 -0.2003
-0.0464 -0.1628
-0.1145 -0.1053
-0.1591 -0.0112
-0.1756 0.1191
-0.1688 0.2651
-0.1473 0.3909
-0.1194 0.4581
-0.0897 0.4402
-0.0589 0.3334
-0.0243 0.1604
0.0172 -0.0367
0.0664 -0.2100
0.1189 -0.3211
0.1658 -0.3523
0.1959 -0.3095
0.1986 -0.2173
0.1666 -0.1087
0.0993 -0.0137
0.0036 0.0484
-0.1058 0.0723
-0.2096 0.0658
-0.2885 0.0441
-0.3286 0.0218
-0.3251 0.0059
-0.2835 -0.0076
-0.2169 -0.0305
-0.1383 -0.0766
-0.0542 -0.1536
0.0387 -0.2577
0.1481 -0.3732
0.2772 -0.4758
0.4165 -0.5401
0.5418 -0.5477
0.6197 -0.4925
0.6193 -0.3842
0.5246 -0.2460
0.3424 -0.1082
0.1031 -0.0006
-0.1454 0.0561
-0.3496 0.0551
-0.4637 0.0057
-0.4618 -0.0704
-0.3451 -0.1454
-0.1419 -0.1947
0.0993 -0.2051
0.3217 -0.1792
0.4747 -0.1331
0.5254 -0.0890
0.4654 -0.0652
0.3113 -0.0687
0.1002 -0.0941
-0.1199 -0.1280
-0.3031 -0.1559
-0.4178 -0.1680
-0.4546 -0.1603
-0.4270 -0.1337
-0.3635 -0.0927
-0.0439 -0.1923
0.0047 -0.0653
0.0465 0.0534
0.0774 0.1393
0.0971 0.1782
0.1078 0.1706
0.1116 0.1305
0.1082 0.0787
0.0942 0.0349
0.0643 0.0097
0.0152 0.0015
-0.0509 -0.0004
-0.1235 -0.0090
-0.1851 -0.0316
-0.2151 -0.0661
-0.1971 -0.1004
-0.1260 -0.1165
-0.0117 -0.0967
0.1207 -0.0311
0.2368 0.0770
0.3023 0.2100
0.2946 0.3397
0.2121 0.4355
0.0771 0.4722
-0.0710 0.4380
-0.1879 0.3391
-0.2379 0.1982
-0.2033 0.0481
-0.0890 -0.0778
0.0781 -0.1549
0.2556 -0.1741
0.3976 -0.1418
0.4692 -0.0759
0.4570 0.0007
0.3721 0.0673
0.2450 0.1114
0.1148 0.1316
0.0162 0.1368
-0.0305 0.1413
-0.0242 0.1583
0.0182 0.1938
0.0705 0.2428
0.1079 0.2896
0.1155 0.3138
0.0921 0.2989
0.0483 0.2401
0.0021 0.1485
-0.0288 0.0493
-0.0348 -0.0265
-0.0187 -0.0533
0.0042 -0.0214
0.0138 0.0604
-0.0064 0.1678
-0.0624 0.2697
-0.1475 0.3388
-0.2434 0.3590
-0.3259 0.3304
-0.3711 0.2676
-0.3631 0.1930
-0.2995 0.1284
0.0861 -0.0283
0.0657 -0.0209
0.0554 -0.0205
0.0379 -0.0206
-0.0014 -0.0172
-0.0687 -0.0099
-0.1594 -0.0021
-0.2598 0.0001
-0.3513 -0.0090
-0.4142 -0.0317
-0.4331 -0.0650
-0.4012 -0.1007
-0.3233 -0.1285
-0.2144 -0.1394
-0.0957 -0.1286
0.0120 -0.0971
0.0937 -0.0516
0.1427 -0.0037
0.1615 0.0312
0.1591 0.0371
0.1478 0.0013
0.1387 -0.0796
0.1393 -0.1968
0.1516 -0.3283
0.1717 -0.4440
0.1913 -0.5140
0.2014 -0.5183
0.1963 -0.4539
0.1761 -0.3365
0.1477 -0.1961
0.1227 -0.0686
0.1136 0.0151
0.1284 0.0377
0.1657 0.0007
0.2128 -0.0774
0.2474 -0.1681
0.2447 -0.2435
0.1865 -0.2854
0.0696 -0.2893
-0.0894 -0.2625
-0.2555 -0.2195
-0.3867 -0.1757
-0.4478 -0.1429
-0.4239 -0.1255
-0.3258 -0.1219
-0.1872 -0.1265
-0.0523 -0.1325
0.0390 -0.1345
0.0641 -0.1283
0.0232 -0.1116
-0.0633 -0.0845
-0.1639 -0.0499
-0.2478 -0.0126
-0.2938 0.0221
-0.2957 0.0510
-0.2608 0.0741
-0.2039 0.0929
-0.1418 0.1091
-0.0877 0.1234
-0.0493 0.1371
0.1543 -0.1618
0.1816 -0.2346
0.2261 -0.2681
0.2909 -0.2509
0.3714 -0.1796
0.4548 -0.0610
0.5224 0.0872
0.5549 0.2381
0.5378 0.3619
0.4662 0.4330
0.3464 0.4380
0.1943 0.3784
0.0319 0.2696
-0.1176 0.1355
-0.2344 0.0024
-0.3058 -0.1072
-0.3282 -0.1782
-0.3058 -0.2049
-0.2491 -0.1891
-0.1723 -0.1383
-0.0919 -0.0627
-0.0247 0.0252
0.0144 0.1103
0.0168 0.1762
-0.0175 0.2078
-0.0790 0.1949
-0.1506 0.1350
-0.2110 0.0348
-0.2408 -0.0908
-0.2282 -0.2199
-0.1746 -0.3288
-0.0945 -0.3975
-0.0112 -0.4152
0.0519 -0.3832
0.0802 -0.3147
0.0733 -0.2303
0.0434 -0.1513
0.0102 -0.0931
-0.0083 -0.0599
-0.0029 -0.0440
0.0233 -0.0299
0.0562 -0.0021
0.0782 0.0461
0.0764 0.1083
0.0490 0.1663
0.0062 0.1972
-0.0342 0.1828
-0.0544 0.1188
-0.0438 0.0188
-0.0023 -0.0881
0.0606 -0.1664
0.1300 -0.1875
0.1909 -0.1403
0.2321
0.2471
0.2336 Dari data yang diperoleh tersebut kemudian diperoleh bentuk
0.1916 sinyal acak seperti di bawah ini:
0.1233
0.0339
-0.0663
Gambar 4.3 Sintak desain filter Butterworth

n merupakan jumlah orde sedangkan wn diperoleh dari


persamaan yang digunakan dalam percobaan sebelumnya.
Adapun n berjumlah 5 orde sedangkan Wn = fc/(fs/2)

Maka Wn sebesar 0,2. Pendesainan mengharapkan filter


lowpass.
Gambar 4.1 bentuk sinyal acak dari 1000 titik

Apabilla ditinjau dari bentuk sinyal acak atau white noise


tersebut dayaterlihat sama pada bandwith tetap disetiap
frekuensi tengah. Sinyal white noise dapat dikatakan memiliki Berikut ini adalah desain filter chebyshev tipe 1:
sprektum datar pada banwith terlebar yang mungkin
dilewatkan pada sebuah medium. Sample sinyal tersebut telah
diatur dengan 1000 titik dan tersusun atas kotak persegi
panajng dan diasumsikan variabel acak independen dengan
interval distribusi probabilitas seragam.

B. Tugas 2 : Desain filter IIR - 1


Percobaan Desain filter IIR-1 dilakukakan dengan
memberikan frekuensi sampling sebesar 16000 Hz dan
diinginkan filter lowpass berorde 5 dengan frekuensi cut-off.
Data tersebut digunakan untuk memperoleh desain filter
butterworth, chebyshev tipe 1, chebyshev tipe 2, dan elliptic.
Adapun desain filter butterworth diperoleh sebagai berikut:

Gambar 4.4 desain filter chebyshev tipe 1

Desain filter chebyshev tipe 1 dibentuk melalui passband


ripple (Rp) sebesar 10dB sedangkan Wp diperoleh dari data
sebelumnya.

C. Tugas 3 : Judul Tugas


Gambar 4.5 Sintak desain filter chebyshev tipe 1

Gambar 4.2 desain filter butterworth


Filter Elliptic dengan passband ripple 10 dB dan stopband
Berikut ini adalah desain filter chebyshev tipe 2: attuenation 40 dB. Berdasarkan sintak matlab di atas Rp=
10dB, Rs=40dB dan Wp 0,2.

Dari percobaan keempat jenis filter diperoleh desain yang


menyerupai dengan desain-desain yang berada dalam teori
dasar. Oleh karena itu percobaan ini dapat dikatakan berhasil.

Setelah melakukan berbagai percobaan di atas kemudian


keempat jenis filter tersebut diberikan sinyal acak atau white
noise dari percobaan pertama.

 Butterworth

Gambar 4.6 desain filter chebyshev tipe 2

Gambar 4.7 Sintak desain filter chebyshev tipe 2

Filter Chebyshev tipe-2 dengan stopband attuenation 40 dB.


Gambar 4.10 desain filter Butterworth dengan white noise
Berikut ini adalah desain filter chebyshev tipe 2:
 filter chebyshev tipe 1

Gambar 4.8 desain filter Elliptic

Gambar 4.11 desain filter chebyshev tipe 1 dengan white noise

 filter chebyshev tipe 2


Gambar 4.9 Sintak desain filter Elliptic
C. Tugas 3: Desain filter IIR -2
Pada percobaan ini praktikan mendesain dengan menggunakan
filter IIR-2. Filter tersebut memiliki frekuensi passband =
1600 Hz, frekuensi stopband = 9600 Hz, passband ripple
kurang dari 3 dB, dan stopband attuenation minimal 60 dB.
Praktikan diperintahkan untuk merancang perintah buttord
guna mencari orde dan frekuensi cut-off yang diinginkan.
Adapun desain sinyal yang diperoleh sebagai berikut:

Gambar 4.12 desain filter chebyshev tipe 2 dengan white noise

 filter elliptic

Gambar 4.14 desain filter IIR- 2

Apabila ditinjau dari desain sinyal filter di atas diperoleh


bahwa sinyal dimulai dari 0,1. Angka ini dimulai dari hasil
perhitungan wn. Grafik ini bergerak menurun dengan
mendekati -300 dB pada saat frekuensi normalisasi sebesar 1.

Gambar 4.13 desain filter Elliptic dengan white noise


D. Tugas 4: Membandingkan filter IIR dan FIR
Pada percobaan ini praktikan menyiapkan sinyal sintot pada V. SIMPULAN
percobaan modul 1 dan merancang filter IIR filter lowpass
butterworth orde 32 dengan frekuensi cut-off 800 Hz.  Sinyal white noise merupakan sinyal acak yang terdiri atas
Berdasarkan percobaan dengan menggunakan orde 32 (orde persegi panjang.
besar) desain signal yang diharapkan tidak muncul. Hal ini  Besaran orde sangat mempengaruhi desain berbagai filter.
terjadi karena semakin besar nilai orde pemfilteran akan  Jenis filter terdiri atas macam yaitu Filter butterworth.
melemah. Adapun plot signal sintot sebagai berikut: Filter Chebyshev tipe-1, Filter Chebyshev tipe-2 dan filter
elliptic. Dari keempat filter tersebut memiliki perbedaan
masing-masing.
 Filter FIR dan filter IIR memiliki perbedaan masing-
masing salah satunya filter IIR lebih efisien dibanding
filter IIR.

REFERENSI
Basic format for books:
[1] https://www.mathworks.com/help/signal/ref/ellip.html
[2] https://www.mathworks.com/help/signal/ref/cheby2.html
[3] https://www.mathworks.com/help/signal/ref/cheb1.html
[4] https://www.mathworks.com/help/signal/ref/butter.html
[5] J. G. Proaksis dan D. G. Monalakis, “Digital Signal Processing
Principles, Algorithms, and Applications,” in textbook, 3nd ed., vol.
1, N e w j e r s e y : Prentice-Hall, 1997,
[6] Mervin T Hutabarat, Praktikum Pengolahan Sinyal Digital Laboratorium
Teknik Elektro, Institut Teknologi Sumatera, 2018.
Gambar 4.15 plot signal sintot

Selain orde 32 praktikan juga menginputkan orde dengan nilai


5. Adapun perubahan orde tersebut menghasilkan sinyal:

Gambar 4.16 plot signal dengan orde 5


Lampiran
1. Screenshot untuk tugas
2. Sourcecode hasil tugas
3. 0.2709
4. 0.3313
5. 0.3196
6. 0.2633
7. 0.1966
8. 0.1465
9. 0.1232
10. 0.1195
11. 0.1168
12. 0.0954
13. 0.0449
14. -0.0301
15. -0.1111
16. -0.1716
17. -0.1878
18. -0.1480
19. -0.0570
20. 0.0647
21. 0.1881
22. 0.2852
23. 0.3363
24. 0.3348
25. 0.2878
26. 0.2123
27. 0.1301
28. 0.0614
29. 0.0201
30. 0.0117
31. 0.0347
32. 0.0820
33. 0.1432
34. 0.2060
35. 0.2581
36. 0.2893
37. 0.2920
38. 0.2621
39. 0.2000
40. 0.1123
41. 0.0124
42. -0.0824
43. -0.1550
44. -0.1929
45. -0.1915
46. -0.1552
47. -0.0956
48. -0.0281
49. 0.0325
50. 0.0738
51. 0.0868
52. 0.0667
53. 0.0150
54. -0.0592
55. -0.1399
56. -0.2084
57. -0.2483
58. -0.2501
59. -0.2141
60. -0.1505
61. -0.0763
62. -0.0111
63. 0.0285
64. 0.0341
65. 0.0091
66. -0.0307
67. -0.0618
68. -0.0612
69. -0.0177
70. 0.0621
71. 0.1532
72. 0.2219
73. 0.2380
74. 0.1874
75. 0.0779
76. -0.0617
77. -0.1914
78. -0.2723
79. -0.2791
80. -0.2079
81. -0.0767
82. 0.0817
83. 0.2292
84. 0.3340
85. 0.3784
86. 0.3626
87. 0.3022
88. 0.2214
89. 0.1436
90. 0.0846
91. 0.0498
92. 0.0355
93. 0.0319
94. 0.0274
95. 0.0134
96. -0.0125
97. -0.0449
98. -0.0725
99. -0.0834
100. -0.0705
101. -0.0364
102. 0.0058
103. 0.0356
104. 0.0317
105. -0.0202
106. -0.1210
107. -0.2562
108. -0.3990
109. -0.5177
110. -0.5839
111. -0.5811
112. -0.5095
113. -0.3868
114. -0.2440
115. -0.1179
116. -0.0410
117. -0.0330
118. -0.0956
119. -0.2131
120. -0.3579
121. -0.4990
122. -0.6096
123. -0.6709
124. -0.6722
125. -0.6120
126. -0.4983
127. -0.3481
128. -0.1857
129. -0.0387
130. 0.0658
131. 0.1067
132. 0.0731
133. -0.0319
134. -0.1902
135. -0.3701
136. -0.5325
137. -0.6402
138. -0.6681
139. -0.6102
140. -0.4810
141. -0.3108
142. -0.1369
143. 0.0061
144. 0.0952
145. 0.1225
146. 0.0950
147. 0.0309
148. -0.0464
149. -0.1145
150. -0.1591
151. -0.1756
152. -0.1688
153. -0.1473
154. -0.1194
155. -0.0897
156. -0.0589
157. -0.0243
158. 0.0172
159. 0.0664
160. 0.1189
161. 0.1658
162. 0.1959
163. 0.1986
164. 0.1666
165. 0.0993
166. 0.0036
167. -0.1058
168. -0.2096
169. -0.2885
170. -0.3286
171. -0.3251
172. -0.2835
173. -0.2169
174. -0.1383
175. -0.0542
176. 0.0387
177. 0.1481
178. 0.2772
179. 0.4165
180. 0.5418
181. 0.6197
182. 0.6193
183. 0.5246
184. 0.3424
185. 0.1031
186. -0.1454
187. -0.3496
188. -0.4637
189. -0.4618
190. -0.3451
191. -0.1419
192. 0.0993
193. 0.3217
194. 0.4747
195. 0.5254
196. 0.4654
197. 0.3113
198. 0.1002
199. -0.1199
200. -0.3031
201. -0.4178
202. -0.4546
203. -0.4270
204. -0.3635
205. -0.2944
206. -0.2393
207. -0.2003
208. -0.1628
209. -0.1053
210. -0.0112
211. 0.1191
212. 0.2651
213. 0.3909
214. 0.4581
215. 0.4402
216. 0.3334
217. 0.1604
218. -0.0367
219. -0.2100
220. -0.3211
221. -0.3523
222. -0.3095
223. -0.2173
224. -0.1087
225. -0.0137
226. 0.0484
227. 0.0723
228. 0.0658
229. 0.0441
230. 0.0218
231. 0.0059
232. -0.0076
233. -0.0305
234. -0.0766
235. -0.1536
236. -0.2577
237. -0.3732
238. -0.4758
239. -0.5401
240. -0.5477
241. -0.4925
242. -0.3842
243. -0.2460
244. -0.1082
245. -0.0006
246. 0.0561
247. 0.0551
248. 0.0057
249. -0.0704
250. -0.1454
251. -0.1947
252. -0.2051
253. -0.1792
254. -0.1331
255. -0.0890
256. -0.0652
257. -0.0687
258. -0.0941
259. -0.1280
260. -0.1559
261. -0.1680
262. -0.1603
263. -0.1337
264. -0.0927
265. -0.0439
266. 0.0047
267. 0.0465
268. 0.0774
269. 0.0971
270. 0.1078
271. 0.1116
272. 0.1082
273. 0.0942
274. 0.0643
275. 0.0152
276. -0.0509
277. -0.1235
278. -0.1851
279. -0.2151
280. -0.1971
281. -0.1260
282. -0.0117
283. 0.1207
284. 0.2368
285. 0.3023
286. 0.2946
287. 0.2121
288. 0.0771
289. -0.0710
290. -0.1879
291. -0.2379
292. -0.2033
293. -0.0890
294. 0.0781
295. 0.2556
296. 0.3976
297. 0.4692
298. 0.4570
299. 0.3721
300. 0.2450
301. 0.1148
302. 0.0162
303. -0.0305
304. -0.0242
305. 0.0182
306. 0.0705
307. 0.1079
308. 0.1155
309. 0.0921
310. 0.0483
311. 0.0021
312. -0.0288
313. -0.0348
314. -0.0187
315. 0.0042
316. 0.0138
317. -0.0064
318. -0.0624
319. -0.1475
320. -0.2434
321. -0.3259
322. -0.3711
323. -0.3631
324. -0.2995
325. -0.1923
326. -0.0653
327. 0.0534
328. 0.1393
329. 0.1782
330. 0.1706
331. 0.1305
332. 0.0787
333. 0.0349
334. 0.0097
335. 0.0015
336. -0.0004
337. -0.0090
338. -0.0316
339. -0.0661
340. -0.1004
341. -0.1165
342. -0.0967
343. -0.0311
344. 0.0770
345. 0.2100
346. 0.3397
347. 0.4355
348. 0.4722
349. 0.4380
350. 0.3391
351. 0.1982
352. 0.0481
353. -0.0778
354. -0.1549
355. -0.1741
356. -0.1418
357. -0.0759
358. 0.0007
359. 0.0673
360. 0.1114
361. 0.1316
362. 0.1368
363. 0.1413
364. 0.1583
365. 0.1938
366. 0.2428
367. 0.2896
368. 0.3138
369. 0.2989
370. 0.2401
371. 0.1485
372. 0.0493
373. -0.0265
374. -0.0533
375. -0.0214
376. 0.0604
377. 0.1678
378. 0.2697
379. 0.3388
380. 0.3590
381. 0.3304
382. 0.2676
383. 0.1930
384. 0.1284
385. 0.0861
386. 0.0657
387. 0.0554
388. 0.0379
389. -0.0014
390. -0.0687
391. -0.1594
392. -0.2598
393. -0.3513
394. -0.4142
395. -0.4331
396. -0.4012
397. -0.3233
398. -0.2144
399. -0.0957
400. 0.0120
401. 0.0937
402. 0.1427
403. 0.1615
404. 0.1591
405. 0.1478
406. 0.1387
407. 0.1393
408. 0.1516
409. 0.1717
410. 0.1913
411. 0.2014
412. 0.1963
413. 0.1761
414. 0.1477
415. 0.1227
416. 0.1136
417. 0.1284
418. 0.1657
419. 0.2128
420. 0.2474
421. 0.2447
422. 0.1865
423. 0.0696
424. -0.0894
425. -0.2555
426. -0.3867
427. -0.4478
428. -0.4239
429. -0.3258
430. -0.1872
431. -0.0523
432. 0.0390
433. 0.0641
434. 0.0232
435. -0.0633
436. -0.1639
437. -0.2478
438. -0.2938
439. -0.2957
440. -0.2608
441. -0.2039
442. -0.1418
443. -0.0877
444. -0.0493
445. -0.0283
446. -0.0209
447. -0.0205
448. -0.0206
449. -0.0172
450. -0.0099
451. -0.0021
452. 0.0001
453. -0.0090
454. -0.0317
455. -0.0650
456. -0.1007
457. -0.1285
458. -0.1394
459. -0.1286
460. -0.0971
461. -0.0516
462. -0.0037
463. 0.0312
464. 0.0371
465. 0.0013
466. -0.0796
467. -0.1968
468. -0.3283
469. -0.4440
470. -0.5140
471. -0.5183
472. -0.4539
473. -0.3365
474. -0.1961
475. -0.0686
476. 0.0151
477. 0.0377
478. 0.0007
479. -0.0774
480. -0.1681
481. -0.2435
482. -0.2854
483. -0.2893
484. -0.2625
485. -0.2195
486. -0.1757
487. -0.1429
488. -0.1255
489. -0.1219
490. -0.1265
491. -0.1325
492. -0.1345
493. -0.1283
494. -0.1116
495. -0.0845
496. -0.0499
497. -0.0126
498. 0.0221
499. 0.0510
500. 0.0741
501. 0.0929
502. 0.1091
503. 0.1234
504. 0.1371
505. 0.1543
506. 0.1816
507. 0.2261
508. 0.2909
509. 0.3714
510. 0.4548
511. 0.5224
512. 0.5549
513. 0.5378
514. 0.4662
515. 0.3464
516. 0.1943
517. 0.0319
518. -0.1176
519. -0.2344
520. -0.3058
521. -0.3282
522. -0.3058
523. -0.2491
524. -0.1723
525. -0.0919
526. -0.0247
527. 0.0144
528. 0.0168
529. -0.0175
530. -0.0790
531. -0.1506
532. -0.2110
533. -0.2408
534. -0.2282
535. -0.1746
536. -0.0945
537. -0.0112
538. 0.0519
539. 0.0802
540. 0.0733
541. 0.0434
542. 0.0102
543. -0.0083
544. -0.0029
545. 0.0233
546. 0.0562
547. 0.0782
548. 0.0764
549. 0.0490
550. 0.0062
551. -0.0342
552. -0.0544
553. -0.0438
554. -0.0023
555. 0.0606
556. 0.1300
557. 0.1909
558. 0.2321
559. 0.2471
560. 0.2336
561. 0.1916
562. 0.1233
563. 0.0339
564. -0.0663
565. -0.1618
566. -0.2346
567. -0.2681
568. -0.2509
569. -0.1796
570. -0.0610
571. 0.0872
572. 0.2381
573. 0.3619
574. 0.4330
575. 0.4380
576. 0.3784
577. 0.2696
578. 0.1355
579. 0.0024
580. -0.1072
581. -0.1782
582. -0.2049
583. -0.1891
584. -0.1383
585. -0.0627
586. 0.0252
587. 0.1103
588. 0.1762
589. 0.2078
590. 0.1949
591. 0.1350
592. 0.0348
593. -0.0908
594. -0.2199
595. -0.3288
596. -0.3975
597. -0.4152
598. -0.3832
599. -0.3147
600. -0.2303
601. -0.1513
602. -0.0931
603. -0.0599
604. -0.0440
605. -0.0299
606. -0.0021
607. 0.0461
608. 0.1083
609. 0.1663
610. 0.1972
611. 0.1828
612. 0.1188
613. 0.0188
614. -0.0881
615. -0.1664
616. -0.1875
617. -0.1403
618.
619. >> DataCD= filter(C,D,a)
620.
621. DataCD =
622.
623. 0.0000
624. 0.0003
625. 0.0014
626. 0.0048
627. 0.0134
628. 0.0317
629. 0.0636
630. 0.1089
631. 0.1600
632. 0.2014
633. 0.2134
634. 0.1789
635. 0.0913
636. -0.0397
637. -0.1872
638. -0.3120
639. -0.3740
640. -0.3456
641. -0.2222
642. -0.0265
643. 0.1962
644. 0.3908
645. 0.5069
646. 0.5144
647. 0.4117
648. 0.2260
649. 0.0044
650. -0.2005
651. -0.3448
652. -0.4050
653. -0.3819
654. -0.2984
655. -0.1907
656. -0.0957
657. -0.0372
658. -0.0180
659. -0.0201
660. -0.0144
661. 0.0252
662. 0.1091
663. 0.2252
664. 0.3414
665. 0.4153
666. 0.4097
667. 0.3075
668. 0.1212
669. -0.1063
670. -0.3140
671. -0.4419
672. -0.4518
673. -0.3393
674. -0.1351
675. 0.1049
676. 0.3176
677. 0.4510
678. 0.4797
679. 0.4109
680. 0.2811
681. 0.1440
682. 0.0534
683. 0.0454
684. 0.1246
685. 0.2611
686. 0.3996
687. 0.4787
688. 0.4532
689. 0.3116
690. 0.0832
691. -0.1691
692. -0.3690
693. -0.4517
694. -0.3848
695. -0.1790
696. 0.1155
697. 0.4237
698. 0.6691
699. 0.7949
700. 0.7797
701. 0.6405
702. 0.4253
703. 0.1963
704. 0.0108
705. -0.0952
706. -0.1138
707. -0.0634
708. 0.0217
709. 0.1052
710. 0.1612
711. 0.1819
712. 0.1772
713. 0.1697
714. 0.1839
715. 0.2357
716. 0.3244
717. 0.4306
718. 0.5205
719. 0.5565
720. 0.5100
721. 0.3740
722. 0.1696
723. -0.0562
724. -0.2432
725. -0.3363
726. -0.3049
727. -0.1549
728. 0.0717
729. 0.3099
730. 0.4918
731. 0.5666
732. 0.5161
733. 0.3600
734. 0.1479
735. -0.0573
736. -0.2014
737. -0.2549
738. -0.2191
739. -0.1213
740. -0.0033
741. 0.0920
742. 0.1328
743. 0.1081
744. 0.0293
745. -0.0740
746. -0.1655
747. -0.2166
748. -0.2159
749. -0.1720
750. -0.1088
751. -0.0565
752. -0.0416
753. -0.0772
754. -0.1585
755. -0.2632
756. -0.3584
757. -0.4126
758. -0.4077
759. -0.3450
760. -0.2431
761. -0.1303
762. -0.0337
763. 0.0289
764. 0.0532
765. 0.0473
766. 0.0276
767. 0.0134
768. 0.0201
769. 0.0541
770. 0.1097
771. 0.1707
772. 0.2158
773. 0.2263
774. 0.1939
775. 0.1250
776. 0.0394
777. -0.0356
778. -0.0743
779. -0.0615
780. 0.0019
781. 0.0994
782. 0.2049
783. 0.2906
784. 0.3355
785. 0.3313
786. 0.2837
787. 0.2104
788. 0.1343
789. 0.0767
790. 0.0518
791. 0.0643
792. 0.1085
793. 0.1703
794. 0.2301
795. 0.2684
796. 0.2710
797. 0.2327
798. 0.1595
799. 0.0679
800. -0.0196
801. -0.0801
802. -0.0987
803. -0.0734
804. -0.0160
805. 0.0515
806. 0.1059
807. 0.1312
808. 0.1253
809. 0.0996
810. 0.0731
811. 0.0644
812. 0.0835
813. 0.1274
814. 0.1805
815. 0.2202
816. 0.2261
817. 0.1888
818. 0.1156
819. 0.0299
820. -0.0365
821. -0.0539
822. -0.0059
823. 0.1035
824. 0.2486
825. 0.3900
826. 0.4868
827. 0.5108
828. 0.4557
829. 0.3389
830. 0.1956
831. 0.0661
832. -0.0193
833. -0.0497
834. -0.0356
835. -0.0034
836. 0.0159
837. -0.0023
838. -0.0665
839. -0.1659
840. -0.2742
841. -0.3593
842. -0.3943
843. -0.3666
844. -0.2814
845. -0.1603
846. -0.0335
847. 0.0672
848. 0.1181
849. 0.1100
850. 0.0514
851. -0.0333
852. -0.1127
853. -0.1588
854. -0.1576
855. -0.1145
856. -0.0535
857. -0.0079
858. -0.0062
859. -0.0592
860. -0.1524
861. -0.2503
862. -0.3097
863. -0.2962
864. -0.1973
865. -0.0281
866. 0.1720
867. 0.3514
868. 0.4626
869. 0.4781
870. 0.3985
871. 0.2514
872. 0.0818
873. -0.0627
874. -0.1465
875. -0.1551
876. -0.0976
877. -0.0025
878. 0.0924
879. 0.1524
880. 0.1579
881. 0.1109
882. 0.0347
883. -0.0355
884. -0.0671
885. -0.0437
886. 0.0277
887. 0.1197
888. 0.1957
889. 0.2250
890. 0.1952
891. 0.1171
892. 0.0218
893. -0.0493
894. -0.0594
895. 0.0112
896. 0.1567
897. 0.3462
898. 0.5319
899. 0.6638
900. 0.7044
901. 0.6409
902. 0.4894
903. 0.2910
904. 0.1005
905. -0.0287
906. -0.0607
907. 0.0129
908. 0.1720
909. 0.3756
910. 0.5756
911. 0.7293
912. 0.8094
913. 0.8082
914. 0.7362
915. 0.6168
916. 0.4802
917. 0.3555
918. 0.2651
919. 0.2196
920. 0.2177
921. 0.2485
922. 0.2976
923. 0.3525
924. 0.4054
925. 0.4524
926. 0.4928
927. 0.5277
928. 0.5591
929. 0.5884
930. 0.6137
931. 0.6295
932. 0.6280
933. 0.6024
934. 0.5506
935. 0.4781
936. 0.3988
937. 0.3317
938. 0.2949
939. 0.2982
940. 0.3398
941. 0.4052
942. 0.4711
943. 0.5120
944. 0.5092
945. 0.4566
946. 0.3645
947. 0.2574
948. 0.1667
949. 0.1208
950. 0.1349
951. 0.2069
952. 0.3178
953. 0.4379
954. 0.5352
955. 0.5841
956. 0.5738
957. 0.5112
958. 0.4192
959. 0.3274
960. 0.2619
961. 0.2361
962. 0.2467
963. 0.2762
964. 0.2992
965. 0.2924
966. 0.2428
967. 0.1536
968. 0.0433
969. -0.0591
970. -0.1238
971. -0.1306
972. -0.0759
973. 0.0267
974. 0.1507
975. 0.2660
976. 0.3475
977. 0.3818
978. 0.3685
979. 0.3167
980. 0.2383
981. 0.1421
982. 0.0319
983. -0.0912
984. -0.2240
985. -0.3578
986. -0.4768
987. -0.5603
988. -0.5876
989. -0.5429
990. -0.4208
991. -0.2293
992. 0.0079
993. 0.2533
994. 0.4619
995. 0.5911
996. 0.6106
997. 0.5112
998. 0.3091
999. 0.0436
1000. -0.2307
1001. -0.4565
1002. -0.5865
1003. -0.5957
1004. -0.4882
1005. -0.2968
1006. -0.0726
1007. 0.1303
1008. 0.2709
1009. 0.3313
1010. 0.3196
1011. 0.2633
1012. 0.1966
1013. 0.1465
1014. 0.1232
1015. 0.1195
1016. 0.1168
1017. 0.0954
1018. 0.0449
1019. -0.0301
1020. -0.1111
1021. -0.1716
1022. -0.1878
1023. -0.1480
1024. -0.0570
1025. 0.0647
1026. 0.1881
1027. 0.2852
1028. 0.3363
1029. 0.3348
1030. 0.2878
1031. 0.2123
1032. 0.1301
1033. 0.0614
1034. 0.0201
1035. 0.0117
1036. 0.0347
1037. 0.0820
1038. 0.1432
1039. 0.2060
1040. 0.2581
1041. 0.2893
1042. 0.2920
1043. 0.2621
1044. 0.2000
1045. 0.1123
1046. 0.0124
1047. -0.0824
1048. -0.1550
1049. -0.1929
1050. -0.1915
1051. -0.1552
1052. -0.0956
1053. -0.0281
1054. 0.0325
1055. 0.0738
1056. 0.0868
1057. 0.0667
1058. 0.0150
1059. -0.0592
1060. -0.1399
1061. -0.2084
1062. -0.2483
1063. -0.2501
1064. -0.2141
1065. -0.1505
1066. -0.0763
1067. -0.0111
1068. 0.0285
1069. 0.0341
1070. 0.0091
1071. -0.0307
1072. -0.0618
1073. -0.0612
1074. -0.0177
1075. 0.0621
1076. 0.1532
1077. 0.2219
1078. 0.2380
1079. 0.1874
1080. 0.0779
1081. -0.0617
1082. -0.1914
1083. -0.2723
1084. -0.2791
1085. -0.2079
1086. -0.0767
1087. 0.0817
1088. 0.2292
1089. 0.3340
1090. 0.3784
1091. 0.3626
1092. 0.3022
1093. 0.2214
1094. 0.1436
1095. 0.0846
1096. 0.0498
1097. 0.0355
1098. 0.0319
1099. 0.0274
1100. 0.0134
1101. -0.0125
1102. -0.0449
1103. -0.0725
1104. -0.0834
1105. -0.0705
1106. -0.0364
1107. 0.0058
1108. 0.0356
1109. 0.0317
1110. -0.0202
1111. -0.1210
1112. -0.2562
1113. -0.3990
1114. -0.5177
1115. -0.5839
1116. -0.5811
1117. -0.5095
1118. -0.3868
1119. -0.2440
1120. -0.1179
1121. -0.0410
1122. -0.0330
1123. -0.0956
1124. -0.2131
1125. -0.3579
1126. -0.4990
1127. -0.6096
1128. -0.6709
1129. -0.6722
1130. -0.6120
1131. -0.4983
1132. -0.3481
1133. -0.1857
1134. -0.0387
1135. 0.0658
1136. 0.1067
1137. 0.0731
1138. -0.0319
1139. -0.1902
1140. -0.3701
1141. -0.5325
1142. -0.6402
1143. -0.6681
1144. -0.6102
1145. -0.4810
1146. -0.3108
1147. -0.1369
1148. 0.0061
1149. 0.0952
1150. 0.1225
1151. 0.0950
1152. 0.0309
1153. -0.0464
1154. -0.1145
1155. -0.1591
1156. -0.1756
1157. -0.1688
1158. -0.1473
1159. -0.1194
1160. -0.0897
1161. -0.0589
1162. -0.0243
1163. 0.0172
1164. 0.0664
1165. 0.1189
1166. 0.1658
1167. 0.1959
1168. 0.1986
1169. 0.1666
1170. 0.0993
1171. 0.0036
1172. -0.1058
1173. -0.2096
1174. -0.2885
1175. -0.3286
1176. -0.3251
1177. -0.2835
1178. -0.2169
1179. -0.1383
1180. -0.0542
1181. 0.0387
1182. 0.1481
1183. 0.2772
1184. 0.4165
1185. 0.5418
1186. 0.6197
1187. 0.6193
1188. 0.5246
1189. 0.3424
1190. 0.1031
1191. -0.1454
1192. -0.3496
1193. -0.4637
1194. -0.4618
1195. -0.3451
1196. -0.1419
1197. 0.0993
1198. 0.3217
1199. 0.4747
1200. 0.5254
1201. 0.4654
1202. 0.3113
1203. 0.1002
1204. -0.1199
1205. -0.3031
1206. -0.4178
1207. -0.4546
1208. -0.4270
1209. -0.3635
1210. -0.2944
1211. -0.2393
1212. -0.2003
1213. -0.1628
1214. -0.1053
1215. -0.0112
1216. 0.1191
1217. 0.2651
1218. 0.3909
1219. 0.4581
1220. 0.4402
1221. 0.3334
1222. 0.1604
1223. -0.0367
1224. -0.2100
1225. -0.3211
1226. -0.3523
1227. -0.3095
1228. -0.2173
1229. -0.1087
1230. -0.0137
1231. 0.0484
1232. 0.0723
1233. 0.0658
1234. 0.0441
1235. 0.0218
1236. 0.0059
1237. -0.0076
1238. -0.0305
1239. -0.0766
1240. -0.1536
1241. -0.2577
1242. -0.3732
1243. -0.4758
1244. -0.5401
1245. -0.5477
1246. -0.4925
1247. -0.3842
1248. -0.2460
1249. -0.1082
1250. -0.0006
1251. 0.0561
1252. 0.0551
1253. 0.0057
1254. -0.0704
1255. -0.1454
1256. -0.1947
1257. -0.2051
1258. -0.1792
1259. -0.1331
1260. -0.0890
1261. -0.0652
1262. -0.0687
1263. -0.0941
1264. -0.1280
1265. -0.1559
1266. -0.1680
1267. -0.1603
1268. -0.1337
1269. -0.0927
1270. -0.0439
1271. 0.0047
1272. 0.0465
1273. 0.0774
1274. 0.0971
1275. 0.1078
1276. 0.1116
1277. 0.1082
1278. 0.0942
1279. 0.0643
1280. 0.0152
1281. -0.0509
1282. -0.1235
1283. -0.1851
1284. -0.2151
1285. -0.1971
1286. -0.1260
1287. -0.0117
1288. 0.1207
1289. 0.2368
1290. 0.3023
1291. 0.2946
1292. 0.2121
1293. 0.0771
1294. -0.0710
1295. -0.1879
1296. -0.2379
1297. -0.2033
1298. -0.0890
1299. 0.0781
1300. 0.2556
1301. 0.3976
1302. 0.4692
1303. 0.4570
1304. 0.3721
1305. 0.2450
1306. 0.1148
1307. 0.0162
1308. -0.0305
1309. -0.0242
1310. 0.0182
1311. 0.0705
1312. 0.1079
1313. 0.1155
1314. 0.0921
1315. 0.0483
1316. 0.0021
1317. -0.0288
1318. -0.0348
1319. -0.0187
1320. 0.0042
1321. 0.0138
1322. -0.0064
1323. -0.0624
1324. -0.1475
1325. -0.2434
1326. -0.3259
1327. -0.3711
1328. -0.3631
1329. -0.2995
1330. -0.1923
1331. -0.0653
1332. 0.0534
1333. 0.1393
1334. 0.1782
1335. 0.1706
1336. 0.1305
1337. 0.0787
1338. 0.0349
1339. 0.0097
1340. 0.0015
1341. -0.0004
1342. -0.0090
1343. -0.0316
1344. -0.0661
1345. -0.1004
1346. -0.1165
1347. -0.0967
1348. -0.0311
1349. 0.0770
1350. 0.2100
1351. 0.3397
1352. 0.4355
1353. 0.4722
1354. 0.4380
1355. 0.3391
1356. 0.1982
1357. 0.0481
1358. -0.0778
1359. -0.1549
1360. -0.1741
1361. -0.1418
1362. -0.0759
1363. 0.0007
1364. 0.0673
1365. 0.1114
1366. 0.1316
1367. 0.1368
1368. 0.1413
1369. 0.1583
1370. 0.1938
1371. 0.2428
1372. 0.2896
1373. 0.3138
1374. 0.2989
1375. 0.2401
1376. 0.1485
1377. 0.0493
1378. -0.0265
1379. -0.0533
1380. -0.0214
1381. 0.0604
1382. 0.1678
1383. 0.2697
1384. 0.3388
1385. 0.3590
1386. 0.3304
1387. 0.2676
1388. 0.1930
1389. 0.1284
1390. 0.0861
1391. 0.0657
1392. 0.0554
1393. 0.0379
1394. -0.0014
1395. -0.0687
1396. -0.1594
1397. -0.2598
1398. -0.3513
1399. -0.4142
1400. -0.4331
1401. -0.4012
1402. -0.3233
1403. -0.2144
1404. -0.0957
1405. 0.0120
1406. 0.0937
1407. 0.1427
1408. 0.1615
1409. 0.1591
1410. 0.1478
1411. 0.1387
1412. 0.1393
1413. 0.1516
1414. 0.1717
1415. 0.1913
1416. 0.2014
1417. 0.1963
1418. 0.1761
1419. 0.1477
1420. 0.1227
1421. 0.1136
1422. 0.1284
1423. 0.1657
1424. 0.2128
1425. 0.2474
1426. 0.2447
1427. 0.1865
1428. 0.0696
1429. -0.0894
1430. -0.2555
1431. -0.3867
1432. -0.4478
1433. -0.4239
1434. -0.3258
1435. -0.1872
1436. -0.0523
1437. 0.0390
1438. 0.0641
1439. 0.0232
1440. -0.0633
1441. -0.1639
1442. -0.2478
1443. -0.2938
1444. -0.2957
1445. -0.2608
1446. -0.2039
1447. -0.1418
1448. -0.0877
1449. -0.0493
1450. -0.0283
1451. -0.0209
1452. -0.0205
1453. -0.0206
1454. -0.0172
1455. -0.0099
1456. -0.0021
1457. 0.0001
1458. -0.0090
1459. -0.0317
1460. -0.0650
1461. -0.1007
1462. -0.1285
1463. -0.1394
1464. -0.1286
1465. -0.0971
1466. -0.0516
1467. -0.0037
1468. 0.0312
1469. 0.0371
1470. 0.0013
1471. -0.0796
1472. -0.1968
1473. -0.3283
1474. -0.4440
1475. -0.5140
1476. -0.5183
1477. -0.4539
1478. -0.3365
1479. -0.1961
1480. -0.0686
1481. 0.0151
1482. 0.0377
1483. 0.0007
1484. -0.0774
1485. -0.1681
1486. -0.2435
1487. -0.2854
1488. -0.2893
1489. -0.2625
1490. -0.2195
1491. -0.1757
1492. -0.1429
1493. -0.1255
1494. -0.1219
1495. -0.1265
1496. -0.1325
1497. -0.1345
1498. -0.1283
1499. -0.1116
1500. -0.0845
1501. -0.0499
1502. -0.0126
1503. 0.0221
1504. 0.0510
1505. 0.0741
1506. 0.0929
1507. 0.1091
1508. 0.1234
1509. 0.1371
1510. 0.1543
1511. 0.1816
1512. 0.2261
1513. 0.2909
1514. 0.3714
1515. 0.4548
1516. 0.5224
1517. 0.5549
1518. 0.5378
1519. 0.4662
1520. 0.3464
1521. 0.1943
1522. 0.0319
1523. -0.1176
1524. -0.2344
1525. -0.3058
1526. -0.3282
1527. -0.3058
1528. -0.2491
1529. -0.1723
1530. -0.0919
1531. -0.0247
1532. 0.0144
1533. 0.0168
1534. -0.0175
1535. -0.0790
1536. -0.1506
1537. -0.2110
1538. -0.2408
1539. -0.2282
1540. -0.1746
1541. -0.0945
1542. -0.0112
1543. 0.0519
1544. 0.0802
1545. 0.0733
1546. 0.0434
1547. 0.0102
1548. -0.0083
1549. -0.0029
1550. 0.0233
1551. 0.0562
1552. 0.0782
1553. 0.0764
1554. 0.0490
1555. 0.0062
1556. -0.0342
1557. -0.0544
1558. -0.0438
1559. -0.0023
1560. 0.0606
1561. 0.1300
1562. 0.1909
1563. 0.2321
1564. 0.2471
1565. 0.2336
1566. 0.1916
1567. 0.1233
1568. 0.0339
1569. -0.0663
1570. -0.1618
1571. -0.2346
1572. -0.2681
1573. -0.2509
1574. -0.1796
1575. -0.0610
1576. 0.0872
1577. 0.2381
1578. 0.3619
1579. 0.4330
1580. 0.4380
1581. 0.3784
1582. 0.2696
1583. 0.1355
1584. 0.0024
1585. -0.1072
1586. -0.1782
1587. -0.2049
1588. -0.1891
1589. -0.1383
1590. -0.0627
1591. 0.0252
1592. 0.1103
1593. 0.1762
1594. 0.2078
1595. 0.1949
1596. 0.1350
1597. 0.0348
1598. -0.0908
1599. -0.2199
1600. -0.3288
1601. -0.3975
1602. -0.4152
1603. -0.3832
1604. -0.3147
1605. -0.2303
1606. -0.1513
1607. -0.0931
1608. -0.0599
1609. -0.0440
1610. -0.0299
1611. -0.0021
1612. 0.0461
1613. 0.1083
1614. 0.1663
1615. 0.1972
1616. 0.1828
1617. 0.1188
1618. 0.0188
1619. -0.0881
1620. -0.1664
1621. -0.1875
1622. -0.1403
1623.
1624. >> freqz(dataCD)
1625. Undefined function or variable 'dataCD'.
1626.
1627. Did you mean:
1628. >> freqz(DataCD)
1629. >> DataEF= filter(E,F,a)
1630.
1631. DataEF =
1632.
1633. 0.0072
1634. 0.0066
1635. 0.0360
1636. 0.0796
1637. 0.1147
1638. 0.1686
1639. 0.2172
1640. 0.2444
1641. 0.2500
1642. 0.2186
1643. 0.1555
1644. 0.0628
1645. -0.0410
1646. -0.1314
1647. -0.2236
1648. -0.2829
1649. -0.2747
1650. -0.2333
1651. -0.1457
1652. -0.0160
1653. 0.1132
1654. 0.2365
1655. 0.3329
1656. 0.3708
1657. 0.3345
1658. 0.2622
1659. 0.1393
1660. -0.0154
1661. -0.1683
1662. -0.3018
1663. -0.4247
1664. -0.4983
1665. -0.4927
1666. -0.4594
1667. -0.3793
1668. -0.2553
1669. -0.1050
1670. 0.0568
1671. 0.2028
1672. 0.3166
1673. 0.3985
1674. 0.4436
1675. 0.4321
1676. 0.3842
1677. 0.3291
1678. 0.2255
1679. 0.1178
1680. 0.0315
1681. -0.0339
1682. -0.0541
1683. -0.0815
1684. -0.0450
1685. 0.0206
1686. 0.0756
1687. 0.1619
1688. 0.2266
1689. 0.2981
1690. 0.3919
1691. 0.4623
1692. 0.5099
1693. 0.5689
1694. 0.6070
1695. 0.5942
1696. 0.5420
1697. 0.4589
1698. 0.3662
1699. 0.2244
1700. 0.0575
1701. -0.0718
1702. -0.1773
1703. -0.2517
1704. -0.2561
1705. -0.1833
1706. -0.0638
1707. 0.1034
1708. 0.2901
1709. 0.4494
1710. 0.5862
1711. 0.6693
1712. 0.6744
1713. 0.6244
1714. 0.5319
1715. 0.4008
1716. 0.2543
1717. 0.1264
1718. 0.0279
1719. -0.0414
1720. -0.0565
1721. -0.0145
1722. 0.0384
1723. 0.1340
1724. 0.2446
1725. 0.3291
1726. 0.3996
1727. 0.4313
1728. 0.4175
1729. 0.3677
1730. 0.3012
1731. 0.2077
1732. 0.1131
1733. 0.0523
1734. -0.0207
1735. -0.0655
1736. -0.0559
1737. -0.0359
1738. -0.0137
1739. 0.0136
1740. 0.0615
1741. 0.0810
1742. 0.0704
1743. 0.0353
1744. -0.0365
1745. -0.0997
1746. -0.1553
1747. -0.2023
1748. -0.2425
1749. -0.2602
1750. -0.2465
1751. -0.2261
1752. -0.2136
1753. -0.1957
1754. -0.1953
1755. -0.2308
1756. -0.2561
1757. -0.2883
1758. -0.3554
1759. -0.4303
1760. -0.4717
1761. -0.5134
1762. -0.5429
1763. -0.5344
1764. -0.5162
1765. -0.5028
1766. -0.4703
1767. -0.4250
1768. -0.3757
1769. -0.3223
1770. -0.2749
1771. -0.1909
1772. -0.1062
1773. -0.0292
1774. 0.0787
1775. 0.1884
1776. 0.2874
1777. 0.3885
1778. 0.4768
1779. 0.5526
1780. 0.5918
1781. 0.5966
1782. 0.5830
1783. 0.5457
1784. 0.4848
1785. 0.4163
1786. 0.3609
1787. 0.2869
1788. 0.2245
1789. 0.2033
1790. 0.1860
1791. 0.1750
1792. 0.1979
1793. 0.2255
1794. 0.2510
1795. 0.2725
1796. 0.2790
1797. 0.2817
1798. 0.2840
1799. 0.2755
1800. 0.2780
1801. 0.2649
1802. 0.2479
1803. 0.2569
1804. 0.2354
1805. 0.1897
1806. 0.1530
1807. 0.1098
1808. 0.0433
1809. -0.0214
1810. -0.0903
1811. -0.1550
1812. -0.1994
1813. -0.2385
1814. -0.2543
1815. -0.2175
1816. -0.1761
1817. -0.1165
1818. -0.0362
1819. 0.0529
1820. 0.1292
1821. 0.1818
1822. 0.2277
1823. 0.2513
1824. 0.2553
1825. 0.2291
1826. 0.2235
1827. 0.1965
1828. 0.1557
1829. 0.1832
1830. 0.1997
1831. 0.2258
1832. 0.2825
1833. 0.3452
1834. 0.4127
1835. 0.4586
1836. 0.4866
1837. 0.4912
1838. 0.4885
1839. 0.4260
1840. 0.3229
1841. 0.2354
1842. 0.1161
1843. -0.0240
1844. -0.1636
1845. -0.3005
1846. -0.4214
1847. -0.5409
1848. -0.6513
1849. -0.7347
1850. -0.7976
1851. -0.8149
1852. -0.8095
1853. -0.7597
1854. -0.6660
1855. -0.5766
1856. -0.4559
1857. -0.3146
1858. -0.1799
1859. -0.0660
1860. 0.0405
1861. 0.1414
1862. 0.1968
1863. 0.2177
1864. 0.2020
1865. 0.1463
1866. 0.0820
1867. -0.0036
1868. -0.0741
1869. -0.1292
1870. -0.1921
1871. -0.1875
1872. -0.1336
1873. -0.0878
1874. 0.0010
1875. 0.1338
1876. 0.2647
1877. 0.3861
1878. 0.4840
1879. 0.5457
1880. 0.5730
1881. 0.5476
1882. 0.5017
1883. 0.4307
1884. 0.3398
1885. 0.2489
1886. 0.1508
1887. 0.0731
1888. 0.0020
1889. -0.0494
1890. -0.0764
1891. -0.0853
1892. -0.0862
1893. -0.0816
1894. -0.0592
1895. -0.0525
1896. -0.0426
1897. -0.0152
1898. -0.0038
1899. 0.0252
1900. 0.0835
1901. 0.1339
1902. 0.2079
1903. 0.3104
1904. 0.4142
1905. 0.5364
1906. 0.6573
1907. 0.7484
1908. 0.8181
1909. 0.8498
1910. 0.8249
1911. 0.7783
1912. 0.6942
1913. 0.6031
1914. 0.5095
1915. 0.4192
1916. 0.3900
1917. 0.4109
1918. 0.4603
1919. 0.5347
1920. 0.6622
1921. 0.7752
1922. 0.8490
1923. 0.8959
1924. 0.8944
1925. 0.8461
1926. 0.7426
1927. 0.6222
1928. 0.4911
1929. 0.3630
1930. 0.2842
1931. 0.2338
1932. 0.2200
1933. 0.2566
1934. 0.3274
1935. 0.4158
1936. 0.5102
1937. 0.5859
1938. 0.6427
1939. 0.6798
1940. 0.7001
1941. 0.6879
1942. 0.6339
1943. 0.6058
1944. 0.5758
1945. 0.5340
1946. 0.4973
1947. 0.4738
1948. 0.4647
1949. 0.4286
1950. 0.3906
1951. 0.3527
1952. 0.3019
1953. 0.2256
1954. 0.1476
1955. 0.0925
1956. 0.0207
1957. -0.0346
1958. -0.0444
1959. -0.0204
1960. 0.0298
1961. 0.1082
1962. 0.2066
1963. 0.3091
1964. 0.4105
1965. 0.5003
1966. 0.5567
1967. 0.5635
1968. 0.5565
1969. 0.5246
1970. 0.4482
1971. 0.3569
1972. 0.2505
1973. 0.1410
1974. 0.0299
1975. -0.0822
1976. -0.1796
1977. -0.2641
1978. -0.3347
1979. -0.3822
1980. -0.4008
1981. -0.3902
1982. -0.3419
1983. -0.2652
1984. -0.1722
1985. -0.0486
1986. 0.0807
1987. 0.1743
1988. 0.2277
1989. 0.2352
1990. 0.1897
1991. 0.0747
1992. -0.1016
1993. -0.3000
1994. -0.5150
1995. -0.7283
1996. -0.8913
1997. -0.9881
1998. -0.9880
1999. -0.8984
2000. -0.7280
2001. -0.4791
2002. -0.1956
2003. 0.0893
2004. 0.3182
2005. 0.4870
2006. 0.5928
2007. 0.5871
2008. 0.4994
2009. 0.3677
2010. 0.2012
2011. 0.0359
2012. -0.1264
2013. -0.2383
2014. -0.2674
2015. -0.2578
2016. -0.2093
2017. -0.1122
2018. 0.0160
2019. 0.1354
2020. 0.2236
2021. 0.2904
2022. 0.3246
2023. 0.3284
2024. 0.3074
2025. 0.2696
2026. 0.2311
2027. 0.1878
2028. 0.1524
2029. 0.1282
2030. 0.0920
2031. 0.0680
2032. 0.0680
2033. 0.0537
2034. 0.0565
2035. 0.0749
2036. 0.0820
2037. 0.1017
2038. 0.1268
2039. 0.1507
2040. 0.1812
2041. 0.2021
2042. 0.2231
2043. 0.2631
2044. 0.2954
2045. 0.3232
2046. 0.3472
2047. 0.3659
2048. 0.3906
2049. 0.3979
2050. 0.3689
2051. 0.3136
2052. 0.2584
2053. 0.1603
2054. 0.0504
2055. -0.0813
2056. -0.2139
2057. -0.3030
2058. -0.3966
2059. -0.4450
2060. -0.4570
2061. -0.4267
2062. -0.3576
2063. -0.2968
2064. -0.2466
2065. -0.1974
2066. -0.1623
2067. -0.1735
2068. -0.2094
2069. -0.2362
2070. -0.2815
2071. -0.3063
2072. -0.3159
2073. -0.3185
2074. -0.2808
2075. -0.2242
2076. -0.1744
2077. -0.1050
2078. -0.0307
2079. 0.0267
2080. 0.0951
2081. 0.1489
2082. 0.1962
2083. 0.2301
2084. 0.2599
2085. 0.2784
2086. 0.2807
2087. 0.2586
2088. 0.2316
2089. 0.2004
2090. 0.1306
2091. 0.0673
2092. 0.0106
2093. -0.0490
2094. -0.0606
2095. -0.0389
2096. -0.0041
2097. 0.0706
2098. 0.1647
2099. 0.2579
2100. 0.3480
2101. 0.4116
2102. 0.4393
2103. 0.4446
2104. 0.4323
2105. 0.3737
2106. 0.2801
2107. 0.1953
2108. 0.1041
2109. 0.0056
2110. -0.0726
2111. -0.1342
2112. -0.1839
2113. -0.2118
2114. -0.2375
2115. -0.2661
2116. -0.3044
2117. -0.3545
2118. -0.4191
2119. -0.5009
2120. -0.5823
2121. -0.6758
2122. -0.7582
2123. -0.8112
2124. -0.8553
2125. -0.8484
2126. -0.8126
2127. -0.7545
2128. -0.6664
2129. -0.5753
2130. -0.4930
2131. -0.4350
2132. -0.3998
2133. -0.4101
2134. -0.4696
2135. -0.5418
2136. -0.6045
2137. -0.6579
2138. -0.6921
2139. -0.6688
2140. -0.5777
2141. -0.4460
2142. -0.2902
2143. -0.1399
2144. 0.0142
2145. 0.1246
2146. 0.1459
2147. 0.1402
2148. 0.0649
2149. -0.0784
2150. -0.2046
2151. -0.3476
2152. -0.4548
2153. -0.4891
2154. -0.4810
2155. -0.4100
2156. -0.2908
2157. -0.1346
2158. 0.0167
2159. 0.1321
2160. 0.2300
2161. 0.2952
2162. 0.2970
2163. 0.2573
2164. 0.2155
2165. 0.1690
2166. 0.1240
2167. 0.0948
2168. 0.0878
2169. 0.1201
2170. 0.1713
2171. 0.2372
2172. 0.2907
2173. 0.3319
2174. 0.3862
2175. 0.3925
2176. 0.3602
2177. 0.3086
2178. 0.2318
2179. 0.1342
2180. 0.0245
2181. -0.0927
2182. -0.1965
2183. -0.2837
2184. -0.3602
2185. -0.4172
2186. -0.4538
2187. -0.4228
2188. -0.3367
2189. -0.2274
2190. -0.0575
2191. 0.1485
2192. 0.3614
2193. 0.5650
2194. 0.7340
2195. 0.8568
2196. 0.9116
2197. 0.8943
2198. 0.7965
2199. 0.6344
2200. 0.4371
2201. 0.2148
2202. 0.0030
2203. -0.1510
2204. -0.2379
2205. -0.2815
2206. -0.2583
2207. -0.1808
2208. -0.1150
2209. -0.0560
2210. -0.0119
2211. -0.0068
2212. -0.0574
2213. -0.1440
2214. -0.2531
2215. -0.3945
2216. -0.5151
2217. -0.6197
2218. -0.6896
2219. -0.6859
2220. -0.6489
2221. -0.5468
2222. -0.3820
2223. -0.2239
2224. -0.0526
2225. 0.1267
2226. 0.2733
2227. 0.3899
2228. 0.4734
2229. 0.5217
2230. 0.5253
2231. 0.4993
2232. 0.4253
2233. 0.3168
2234. 0.2256
2235. 0.1067
2236. -0.0164
2237. -0.0920
2238. -0.1674
2239. -0.2346
2240. -0.2651
2241. -0.2725
2242. -0.2698
2243. -0.2640
2244. -0.2544
2245. -0.2401
2246. -0.2372
2247. -0.2647
2248. -0.3070
2249. -0.3675
2250. -0.4259
2251. -0.5034
2252. -0.5756
2253. -0.6053
2254. -0.6394
2255. -0.6433
2256. -0.6015
2257. -0.5487
2258. -0.4776
2259. -0.3834
2260. -0.3009
2261. -0.2117
2262. -0.1111
2263. -0.0323
2264. 0.0370
2265. 0.0891
2266. 0.1356
2267. 0.1542
2268. 0.1634
2269. 0.1732
2270. 0.1592
2271. 0.1473
2272. 0.1103
2273. 0.0589
2274. 0.0101
2275. -0.0319
2276. -0.0776
2277. -0.1125
2278. -0.1159
2279. -0.0959
2280. -0.0478
2281. 0.0039
2282. 0.0891
2283. 0.1779
2284. 0.2535
2285. 0.3380
2286. 0.3626
2287. 0.3557
2288. 0.3203
2289. 0.2318
2290. 0.1339
2291. 0.0385
2292. -0.0465
2293. -0.1141
2294. -0.1425
2295. -0.1206
2296. -0.0841
2297. -0.0341
2298. 0.0324
2299. 0.0860
2300. 0.1303
2301. 0.1500
2302. 0.1308
2303. 0.0972
2304. 0.0770
2305. 0.0803
2306. 0.0822
2307. 0.1089
2308. 0.1732
2309. 0.2690
2310. 0.3664
2311. 0.4478
2312. 0.5046
2313. 0.5334
2314. 0.5284
2315. 0.4870
2316. 0.4065
2317. 0.2936
2318. 0.1841
2319. 0.0873
2320. 0.0097
2321. -0.0623
2322. -0.1038
2323. -0.1230
2324. -0.1252
2325. -0.1161
2326. -0.1323
2327. -0.1647
2328. -0.1926
2329. -0.2333
2330. -0.3002
2331. -0.3860
2332. -0.4701
2333. -0.5196
2334. -0.5623
2335. -0.6017
2336. -0.5833
2337. -0.5419
2338. -0.4794
2339. -0.3761
2340. -0.2592
2341. -0.1502
2342. -0.0381
2343. 0.1047
2344. 0.1981
2345. 0.2688
2346. 0.3442
2347. 0.3656
2348. 0.3519
2349. 0.3196
2350. 0.2862
2351. 0.2162
2352. 0.1454
2353. 0.0965
2354. 0.0694
2355. 0.0661
2356. 0.0691
2357. 0.1195
2358. 0.1932
2359. 0.2824
2360. 0.3706
2361. 0.4285
2362. 0.4778
2363. 0.5145
2364. 0.4872
2365. 0.4228
2366. 0.3649
2367. 0.2543
2368. 0.1371
2369. 0.0483
2370. -0.0459
2371. -0.1242
2372. -0.1663
2373. -0.1758
2374. -0.1595
2375. -0.1176
2376. -0.0668
2377. 0.0193
2378. 0.1122
2379. 0.1798
2380. 0.2463
2381. 0.3076
2382. 0.3397
2383. 0.3506
2384. 0.3483
2385. 0.3560
2386. 0.3359
2387. 0.2966
2388. 0.2832
2389. 0.2550
2390. 0.2389
2391. 0.2268
2392. 0.2132
2393. 0.2152
2394. 0.2255
2395. 0.2192
2396. 0.2120
2397. 0.1926
2398. 0.1612
2399. 0.1220
2400. 0.0536
2401. -0.0162
2402. -0.1106
2403. -0.2237
2404. -0.3422
2405. -0.4827
2406. -0.6125
2407. -0.7131
2408. -0.8071
2409. -0.8690
2410. -0.8852
2411. -0.8395
2412. -0.7585
2413. -0.6414
2414. -0.4735
2415. -0.2941
2416. -0.0857
2417. 0.1270
2418. 0.3050
2419. 0.4690
2420. 0.6189
2421. 0.7123
2422. 0.7617
2423. 0.7902
2424. 0.7822
2425. 0.7447
2426. 0.6817
2427. 0.6122
2428. 0.5532
2429. 0.4855
2430. 0.4232
2431. 0.3615
2432. 0.2945
2433. 0.2206
2434. 0.1256
2435. 0.0204
2436. -0.1170
2437. -0.2403
2438. -0.3492
2439. -0.4920
2440. -0.6003
2441. -0.6575
2442. -0.7120
2443. -0.7386
2444. -0.7030
2445. -0.6493
2446. -0.5803
2447. -0.4979
2448. -0.4210
2449. -0.3658
2450. -0.3258
2451. -0.3052
2452. -0.2987
2453. -0.2784
2454. -0.2529
2455. -0.2194
2456. -0.1719
2457. -0.1154
2458. -0.0463
2459. 0.0363
2460. 0.0991
2461. 0.1490
2462. 0.2002
2463. 0.2330
2464. 0.2168
2465. 0.1846
2466. 0.1520
2467. 0.0937
2468. 0.0469
2469. 0.0069
2470. -0.0337
2471. -0.0468
2472. -0.0440
2473. -0.0450
2474. -0.0280
2475. -0.0187
2476. -0.0251
2477. -0.0589
2478. -0.1053
2479. -0.1777
2480. -0.2940
2481. -0.3925
2482. -0.4927
2483. -0.5883
2484. -0.6557
2485. -0.6856
2486. -0.6677
2487. -0.6318
2488. -0.5600
2489. -0.4394
2490. -0.3390
2491. -0.2373
2492. -0.1308
2493. -0.0753
2494. -0.0591
2495. -0.0503
2496. -0.0570
2497. -0.0876
2498. -0.1089
2499. -0.1289
2500. -0.1247
2501. -0.1030
2502. -0.0890
2503. -0.0760
2504. -0.0478
2505. -0.0229
2506. -0.0145
2507. 0.0113
2508. 0.0138
2509. 0.0240
2510. 0.0508
2511. 0.0770
2512. 0.1271
2513. 0.1920
2514. 0.2579
2515. 0.3300
2516. 0.4037
2517. 0.4844
2518. 0.5488
2519. 0.6090
2520. 0.6804
2521. 0.7410
2522. 0.8109
2523. 0.8592
2524. 0.9028
2525. 0.9298
2526. 0.9050
2527. 0.8709
2528. 0.7822
2529. 0.6162
2530. 0.4349
2531. 0.2109
2532. -0.0499
2533. -0.2925
2534. -0.5144
2535. -0.7004
2536. -0.8232
2537. -0.8963
2538. -0.9180
2539. -0.8958
2540. -0.8373
2541. -0.7474
2542. -0.6719
2543. -0.5940
2544. -0.5073
2545. -0.4301
2546. -0.3507
2547. -0.2819
2548. -0.2132
2549. -0.1256
2550. -0.0468
2551. 0.0386
2552. 0.1346
2553. 0.2059
2554. 0.2625
2555. 0.3150
2556. 0.3341
2557. 0.3205
2558. 0.2891
2559. 0.2408
2560. 0.1973
2561. 0.1525
2562. 0.1195
2563. 0.0909
2564. 0.0792
2565. 0.0806
2566. 0.0867
2567. 0.1077
2568. 0.1370
2569. 0.1805
2570. 0.2258
2571. 0.2658
2572. 0.2981
2573. 0.3007
2574. 0.2803
2575. 0.2269
2576. 0.1502
2577. 0.0688
2578. -0.0393
2579. -0.1476
2580. -0.2365
2581. -0.2866
2582. -0.2981
2583. -0.2800
2584. -0.2033
2585. -0.0874
2586. 0.0491
2587. 0.1997
2588. 0.3311
2589. 0.4138
2590. 0.4659
2591. 0.4714
2592. 0.4061
2593. 0.3170
2594. 0.1997
2595. 0.0669
2596. -0.0411
2597. -0.1030
2598. -0.1447
2599. -0.1634
2600. -0.1402
2601. -0.1041
2602. -0.0756
2603. -0.0514
2604. -0.0724
2605. -0.1180
2606. -0.1841
2607. -0.2778
2608. -0.3860
2609. -0.4932
2610. -0.5713
2611. -0.6268
2612. -0.6395
2613. -0.6188
2614. -0.5734
2615. -0.4893
2616. -0.3856
2617. -0.2663
2618. -0.1466
2619. -0.0231
2620. 0.0815
2621. 0.1732
2622. 0.2659
2623. 0.3094
2624. 0.3424
2625. 0.3670
2626. 0.3711
2627. 0.3600
2628. 0.3449
2629. 0.3215
2630. 0.2857
2631. 0.2576
2632. 0.2313
2633.
2634. >> freqz(DataEF)
2635. >> DataGH= filter(G,H,a)
2636.
2637. DataGH =
2638.
2639. 0.0067
2640. 0.0085
2641. 0.0346
2642. 0.0818
2643. 0.1215
2644. 0.1622
2645. 0.1896
2646. 0.1872
2647. 0.1526
2648. 0.0777
2649. -0.0273
2650. -0.1447
2651. -0.2403
2652. -0.2737
2653. -0.2518
2654. -0.1677
2655. -0.0102
2656. 0.1672
2657. 0.3264
2658. 0.4346
2659. 0.4462
2660. 0.3612
2661. 0.2022
2662. -0.0056
2663. -0.2281
2664. -0.3885
2665. -0.4586
2666. -0.4297
2667. -0.3076
2668. -0.1274
2669. 0.0391
2670. 0.1601
2671. 0.2366
2672. 0.2238
2673. 0.1354
2674. 0.0116
2675. -0.0993
2676. -0.1525
2677. -0.1381
2678. -0.0710
2679. 0.0286
2680. 0.1323
2681. 0.1946
2682. 0.2048
2683. 0.1850
2684. 0.1093
2685. 0.0111
2686. -0.0613
2687. -0.0825
2688. -0.0308
2689. 0.0295
2690. 0.1157
2691. 0.1993
2692. 0.2332
2693. 0.2450
2694. 0.2162
2695. 0.1827
2696. 0.1910
2697. 0.2242
2698. 0.2687
2699. 0.3436
2700. 0.4208
2701. 0.4444
2702. 0.3894
2703. 0.2620
2704. 0.1095
2705. -0.0601
2706. -0.2076
2707. -0.2515
2708. -0.1798
2709. -0.0204
2710. 0.2001
2711. 0.4358
2712. 0.6132
2713. 0.6975
2714. 0.6715
2715. 0.5282
2716. 0.3248
2717. 0.1131
2718. -0.0685
2719. -0.1668
2720. -0.1550
2721. -0.0513
2722. 0.1065
2723. 0.2815
2724. 0.4279
2725. 0.5015
2726. 0.5037
2727. 0.4554
2728. 0.3489
2729. 0.2399
2730. 0.1590
2731. 0.1018
2732. 0.0863
2733. 0.0990
2734. 0.1219
2735. 0.1455
2736. 0.1739
2737. 0.1881
2738. 0.1928
2739. 0.2157
2740. 0.2189
2741. 0.2128
2742. 0.2233
2743. 0.2190
2744. 0.1758
2745. 0.0973
2746. 0.0271
2747. -0.0346
2748. -0.0796
2749. -0.0989
2750. -0.1048
2751. -0.0712
2752. -0.0045
2753. 0.0668
2754. 0.1035
2755. 0.0954
2756. 0.0593
2757. -0.0010
2758. -0.0834
2759. -0.1633
2760. -0.2384
2761. -0.3144
2762. -0.3427
2763. -0.3172
2764. -0.2806
2765. -0.2525
2766. -0.2157
2767. -0.1971
2768. -0.2013
2769. -0.2070
2770. -0.2276
2771. -0.2785
2772. -0.3325
2773. -0.3663
2774. -0.3689
2775. -0.3398
2776. -0.2971
2777. -0.2138
2778. -0.1128
2779. -0.0192
2780. 0.0843
2781. 0.1737
2782. 0.2204
2783. 0.2261
2784. 0.1947
2785. 0.1503
2786. 0.0984
2787. 0.0526
2788. 0.0365
2789. 0.0525
2790. 0.0903
2791. 0.1447
2792. 0.2184
2793. 0.2674
2794. 0.2867
2795. 0.2993
2796. 0.2839
2797. 0.2368
2798. 0.1945
2799. 0.1629
2800. 0.1474
2801. 0.1503
2802. 0.1605
2803. 0.1808
2804. 0.2122
2805. 0.2402
2806. 0.2725
2807. 0.2844
2808. 0.2761
2809. 0.2799
2810. 0.2598
2811. 0.2013
2812. 0.1327
2813. 0.0639
2814. -0.0100
2815. -0.0659
2816. -0.0970
2817. -0.0950
2818. -0.0500
2819. 0.0126
2820. 0.0796
2821. 0.1593
2822. 0.2035
2823. 0.2028
2824. 0.1700
2825. 0.1229
2826. 0.0690
2827. 0.0136
2828. -0.0152
2829. -0.0137
2830. 0.0185
2831. 0.0595
2832. 0.1324
2833. 0.1932
2834. 0.2143
2835. 0.2565
2836. 0.2776
2837. 0.2764
2838. 0.2771
2839. 0.2796
2840. 0.2897
2841. 0.2876
2842. 0.2705
2843. 0.2395
2844. 0.2190
2845. 0.1741
2846. 0.1054
2847. 0.0690
2848. 0.0448
2849. 0.0184
2850. -0.0136
2851. -0.0580
2852. -0.1080
2853. -0.1764
2854. -0.2627
2855. -0.3458
2856. -0.4136
2857. -0.4312
2858. -0.4057
2859. -0.3292
2860. -0.2110
2861. -0.1133
2862. -0.0382
2863. 0.0091
2864. 0.0116
2865. -0.0399
2866. -0.1158
2867. -0.1731
2868. -0.2100
2869. -0.2129
2870. -0.1853
2871. -0.1482
2872. -0.1019
2873. -0.0773
2874. -0.0679
2875. -0.0743
2876. -0.1145
2877. -0.1167
2878. -0.0571
2879. 0.0110
2880. 0.0938
2881. 0.1926
2882. 0.2695
2883. 0.3040
2884. 0.2855
2885. 0.2184
2886. 0.1303
2887. 0.0369
2888. -0.0155
2889. -0.0141
2890. 0.0322
2891. 0.1104
2892. 0.1816
2893. 0.2340
2894. 0.2392
2895. 0.1959
2896. 0.1184
2897. 0.0269
2898. -0.0566
2899. -0.1066
2900. -0.0925
2901. -0.0399
2902. 0.0353
2903. 0.1194
2904. 0.1634
2905. 0.1758
2906. 0.1839
2907. 0.1773
2908. 0.1865
2909. 0.2340
2910. 0.3040
2911. 0.3988
2912. 0.4950
2913. 0.5505
2914. 0.5557
2915. 0.5032
2916. 0.3914
2917. 0.2735
2918. 0.1765
2919. 0.1439
2920. 0.1861
2921. 0.2859
2922. 0.4557
2923. 0.6573
2924. 0.8197
2925. 0.8912
2926. 0.8913
2927. 0.8045
2928. 0.6429
2929. 0.4647
2930. 0.3109
2931. 0.2163
2932. 0.1826
2933. 0.2251
2934. 0.3265
2935. 0.4538
2936. 0.5979
2937. 0.7066
2938. 0.7499
2939. 0.7352
2940. 0.6771
2941. 0.5945
2942. 0.5078
2943. 0.4213
2944. 0.3525
2945. 0.3227
2946. 0.3499
2947. 0.4164
2948. 0.4836
2949. 0.5770
2950. 0.6681
2951. 0.7182
2952. 0.7148
2953. 0.6645
2954. 0.5855
2955. 0.4610
2956. 0.3215
2957. 0.2030
2958. 0.1258
2959. 0.0895
2960. 0.1070
2961. 0.1912
2962. 0.2854
2963. 0.3666
2964. 0.4362
2965. 0.4803
2966. 0.4850
2967. 0.4529
2968. 0.3967
2969. 0.3325
2970. 0.2858
2971. 0.2718
2972. 0.2788
2973. 0.2808
2974. 0.2968
2975. 0.3238
2976. 0.3331
2977. 0.3252
2978. 0.2925
2979. 0.2402
2980. 0.1720
2981. 0.0907
2982. 0.0130
2983. -0.0539
2984. -0.1058
2985. -0.1322
2986. -0.1231
2987. -0.0766
2988. 0.0083
2989. 0.1121
2990. 0.2040
2991. 0.2808
2992. 0.3234
2993. 0.2940
2994. 0.1881
2995. 0.0265
2996. -0.1576
2997. -0.3437
2998. -0.5081
2999. -0.6054
3000. -0.6235
3001. -0.5707
3002. -0.4469
3003. -0.2806
3004. -0.0953
3005. 0.0652
3006. 0.1673
3007. 0.2134
3008. 0.2017
3009. 0.1429
3010. 0.0292
3011. -0.1074
3012. -0.2195
3013. -0.3118
3014. -0.3616
3015. -0.3386
3016. -0.2498
3017. -0.1093
3018. 0.0306
3019. 0.1528
3020. 0.2598
3021. 0.3025
3022. 0.2599
3023. 0.1562
3024. 0.0306
3025. -0.0920
3026. -0.1895
3027. -0.2231
3028. -0.1809
3029. -0.0710
3030. 0.0773
3031. 0.2227
3032. 0.3337
3033. 0.3771
3034. 0.3483
3035. 0.2601
3036. 0.1159
3037. -0.0366
3038. -0.1400
3039. -0.1913
3040. -0.1638
3041. -0.0599
3042. 0.0730
3043. 0.2122
3044. 0.3245
3045. 0.3811
3046. 0.3772
3047. 0.3076
3048. 0.2000
3049. 0.1099
3050. 0.0546
3051. 0.0464
3052. 0.0844
3053. 0.1562
3054. 0.2545
3055. 0.3400
3056. 0.3653
3057. 0.3183
3058. 0.2346
3059. 0.1087
3060. -0.0231
3061. -0.1492
3062. -0.2432
3063. -0.2551
3064. -0.2220
3065. -0.1404
3066. -0.0388
3067. 0.0614
3068. 0.1416
3069. 0.1533
3070. 0.0867
3071. -0.0251
3072. -0.1489
3073. -0.2828
3074. -0.3991
3075. -0.4479
3076. -0.4334
3077. -0.3384
3078. -0.1882
3079. -0.0356
3080. 0.1004
3081. 0.1809
3082. 0.1685
3083. 0.0904
3084. -0.0228
3085. -0.1485
3086. -0.2300
3087. -0.2527
3088. -0.2028
3089. -0.0925
3090. 0.0601
3091. 0.2122
3092. 0.3139
3093. 0.3228
3094. 0.2480
3095. 0.1221
3096. -0.0445
3097. -0.1852
3098. -0.2588
3099. -0.2615
3100. -0.1641
3101. 0.0068
3102. 0.1887
3103. 0.3538
3104. 0.4640
3105. 0.4899
3106. 0.4349
3107. 0.3089
3108. 0.1418
3109. -0.0076
3110. -0.0893
3111. -0.1113
3112. -0.0890
3113. -0.0122
3114. 0.0873
3115. 0.1680
3116. 0.2160
3117. 0.2151
3118. 0.1594
3119. 0.0715
3120. -0.0363
3121. -0.1465
3122. -0.2468
3123. -0.3283
3124. -0.3891
3125. -0.4338
3126. -0.4521
3127. -0.4573
3128. -0.4426
3129. -0.3988
3130. -0.3548
3131. -0.2994
3132. -0.2567
3133. -0.2469
3134. -0.2650
3135. -0.3178
3136. -0.3993
3137. -0.4988
3138. -0.5883
3139. -0.6605
3140. -0.7112
3141. -0.7098
3142. -0.6383
3143. -0.5206
3144. -0.3968
3145. -0.2750
3146. -0.1560
3147. -0.0640
3148. -0.0214
3149. -0.0522
3150. -0.1284
3151. -0.2441
3152. -0.4064
3153. -0.5352
3154. -0.6193
3155. -0.6616
3156. -0.6071
3157. -0.4921
3158. -0.3252
3159. -0.1160
3160. 0.0671
3161. 0.1884
3162. 0.2197
3163. 0.1652
3164. 0.0309
3165. -0.1614
3166. -0.3367
3167. -0.4391
3168. -0.4629
3169. -0.4007
3170. -0.2399
3171. -0.0160
3172. 0.2105
3173. 0.3803
3174. 0.4511
3175. 0.4272
3176. 0.3200
3177. 0.1678
3178. -0.0005
3179. -0.1388
3180. -0.1794
3181. -0.1472
3182. -0.0661
3183. 0.0442
3184. 0.1464
3185. 0.2070
3186. 0.2050
3187. 0.1335
3188. 0.0194
3189. -0.1050
3190. -0.2172
3191. -0.2936
3192. -0.3238
3193. -0.2659
3194. -0.1270
3195. 0.0361
3196. 0.2161
3197. 0.3886
3198. 0.5246
3199. 0.6053
3200. 0.6097
3201. 0.5345
3202. 0.3832
3203. 0.1848
3204. -0.0251
3205. -0.1961
3206. -0.2789
3207. -0.2654
3208. -0.1613
3209. 0.0277
3210. 0.2619
3211. 0.4598
3212. 0.5809
3213. 0.5976
3214. 0.4616
3215. 0.2019
3216. -0.1106
3217. -0.4036
3218. -0.6206
3219. -0.7077
3220. -0.6442
3221. -0.4732
3222. -0.2252
3223. 0.0199
3224. 0.1910
3225. 0.2672
3226. 0.2090
3227. 0.0641
3228. -0.0932
3229. -0.2429
3230. -0.3250
3231. -0.2995
3232. -0.1902
3233. -0.0293
3234. 0.1394
3235. 0.2746
3236. 0.3398
3237. 0.3334
3238. 0.2478
3239. 0.1064
3240. -0.0164
3241. -0.1230
3242. -0.2014
3243. -0.2091
3244. -0.1816
3245. -0.1433
3246. -0.0883
3247. -0.0282
3248. 0.0160
3249. 0.0270
3250. 0.0046
3251. -0.0364
3252. -0.0923
3253. -0.1753
3254. -0.2742
3255. -0.3809
3256. -0.4639
3257. -0.5242
3258. -0.5416
3259. -0.4799
3260. -0.3834
3261. -0.2662
3262. -0.1402
3263. -0.0555
3264. -0.0334
3265. -0.0690
3266. -0.1692
3267. -0.2897
3268. -0.3740
3269. -0.4067
3270. -0.3672
3271. -0.2633
3272. -0.1083
3273. 0.0435
3274. 0.1567
3275. 0.2092
3276. 0.1690
3277. 0.0629
3278. -0.0916
3279. -0.2459
3280. -0.3412
3281. -0.3469
3282. -0.2815
3283. -0.1718
3284. -0.0353
3285. 0.0979
3286. 0.2080
3287. 0.2576
3288. 0.2632
3289. 0.2236
3290. 0.1477
3291. 0.0865
3292. 0.0168
3293. -0.0410
3294. -0.0763
3295. -0.1141
3296. -0.1348
3297. -0.1252
3298. -0.0810
3299. -0.0093
3300. 0.0901
3301. 0.2114
3302. 0.3032
3303. 0.3307
3304. 0.2886
3305. 0.1719
3306. 0.0141
3307. -0.1503
3308. -0.2910
3309. -0.3541
3310. -0.2882
3311. -0.0871
3312. 0.1738
3313. 0.4261
3314. 0.6162
3315. 0.7087
3316. 0.6734
3317. 0.5105
3318. 0.2599
3319. -0.0043
3320. -0.2035
3321. -0.2826
3322. -0.2333
3323. -0.0890
3324. 0.1149
3325. 0.3211
3326. 0.4699
3327. 0.5015
3328. 0.4202
3329. 0.2550
3330. 0.0576
3331. -0.1179
3332. -0.2602
3333. -0.3479
3334. -0.3520
3335. -0.2885
3336. -0.2059
3337. -0.1487
3338. -0.1301
3339. -0.1209
3340. -0.1286
3341. -0.1633
3342. -0.1798
3343. -0.1868
3344. -0.1896
3345. -0.1711
3346. -0.1446
3347. -0.1322
3348. -0.1246
3349. -0.0754
3350. -0.0287
3351. 0.0188
3352. 0.0938
3353. 0.1495
3354. 0.1690
3355. 0.1504
3356. 0.1086
3357. 0.0192
3358. -0.0880
3359. -0.1612
3360. -0.1638
3361. -0.0841
3362. 0.0431
3363. 0.2133
3364. 0.3818
3365. 0.5061
3366. 0.5473
3367. 0.4742
3368. 0.3256
3369. 0.1590
3370. -0.0137
3371. -0.1450
3372. -0.1670
3373. -0.1184
3374. -0.0109
3375. 0.1421
3376. 0.2657
3377. 0.3185
3378. 0.2982
3379. 0.2207
3380. 0.1141
3381. 0.0162
3382. -0.0526
3383. -0.0478
3384. 0.0238
3385. 0.1147
3386. 0.2092
3387. 0.2884
3388. 0.3188
3389. 0.2954
3390. 0.2359
3391. 0.1877
3392. 0.1476
3393. 0.1204
3394. 0.1441
3395. 0.1861
3396. 0.2363
3397. 0.2669
3398. 0.2571
3399. 0.2250
3400. 0.1912
3401. 0.1562
3402. 0.1392
3403. 0.1378
3404. 0.1454
3405. 0.1537
3406. 0.1295
3407. 0.0786
3408. -0.0147
3409. -0.1425
3410. -0.2738
3411. -0.3962
3412. -0.4690
3413. -0.4640
3414. -0.4134
3415. -0.3384
3416. -0.2577
3417. -0.1738
3418. -0.1161
3419. -0.0962
3420. -0.0912
3421. -0.1031
3422. -0.0912
3423. -0.0406
3424. 0.0246
3425. 0.1089
3426. 0.2098
3427. 0.2794
3428. 0.3016
3429. 0.2962
3430. 0.2686
3431. 0.2335
3432. 0.2011
3433. 0.1911
3434. 0.2210
3435. 0.2665
3436. 0.3112
3437. 0.3301
3438. 0.3044
3439. 0.2324
3440. 0.1150
3441. -0.0192
3442. -0.1623
3443. -0.2584
3444. -0.2827
3445. -0.2873
3446. -0.2561
3447. -0.1822
3448. -0.1249
3449. -0.1059
3450. -0.1042
3451. -0.1371
3452. -0.1974
3453. -0.2608
3454. -0.3118
3455. -0.3463
3456. -0.3559
3457. -0.3469
3458. -0.3274
3459. -0.2833
3460. -0.2228
3461. -0.1550
3462. -0.0847
3463. -0.0216
3464. 0.0314
3465. 0.0720
3466. 0.0675
3467. 0.0156
3468. -0.0525
3469. -0.1176
3470. -0.1864
3471. -0.2259
3472. -0.2059
3473. -0.1483
3474. -0.0527
3475. 0.0513
3476. 0.1232
3477. 0.1608
3478. 0.1548
3479. 0.0914
3480. 0.0008
3481. -0.1048
3482. -0.2049
3483. -0.2853
3484. -0.3190
3485. -0.3135
3486. -0.3091
3487. -0.2875
3488. -0.2709
3489. -0.2737
3490. -0.2854
3491. -0.2910
3492. -0.2731
3493. -0.2550
3494. -0.2329
3495. -0.1882
3496. -0.1703
3497. -0.1755
3498. -0.1853
3499. -0.2286
3500. -0.2964
3501. -0.3407
3502. -0.3394
3503. -0.3006
3504. -0.2204
3505. -0.1266
3506. -0.0292
3507. 0.0482
3508. 0.0644
3509. 0.0109
3510. -0.0798
3511. -0.1820
3512. -0.2742
3513. -0.3021
3514. -0.2771
3515. -0.1877
3516. -0.0413
3517. 0.1150
3518. 0.2543
3519. 0.3412
3520. 0.3498
3521. 0.2945
3522. 0.2099
3523. 0.1459
3524. 0.1165
3525. 0.1382
3526. 0.2251
3527. 0.3516
3528. 0.5071
3529. 0.6393
3530. 0.7263
3531. 0.7454
3532. 0.6654
3533. 0.5362
3534. 0.3683
3535. 0.1652
3536. -0.0023
3537. -0.1262
3538. -0.2132
3539. -0.2399
3540. -0.2174
3541. -0.1634
3542. -0.0857
3543. -0.0193
3544. 0.0120
3545. -0.0057
3546. -0.0694
3547. -0.1591
3548. -0.2854
3549. -0.4139
3550. -0.4971
3551. -0.5135
3552. -0.4447
3553. -0.3123
3554. -0.1427
3555. 0.0444
3556. 0.1921
3557. 0.2742
3558. 0.2828
3559. 0.1980
3560. 0.0494
3561. -0.1004
3562. -0.2184
3563. -0.2772
3564. -0.2572
3565. -0.1680
3566. -0.0227
3567. 0.1334
3568. 0.2627
3569. 0.3248
3570. 0.3146
3571. 0.2431
3572. 0.1313
3573. 0.0208
3574. -0.0571
3575. -0.0740
3576. -0.0299
3577. 0.0580
3578. 0.1655
3579. 0.2472
3580. 0.2793
3581. 0.2422
3582. 0.1447
3583. 0.0233
3584. -0.1117
3585. -0.2225
3586. -0.2706
3587. -0.2294
3588. -0.1123
3589. 0.0319
3590. 0.1831
3591. 0.3080
3592. 0.3816
3593. 0.4020
3594. 0.3594
3595. 0.2471
3596. 0.1097
3597. -0.0186
3598. -0.1316
3599. -0.1865
3600. -0.1831
3601. -0.1351
3602. -0.0398
3603. 0.0985
3604. 0.2278
3605. 0.3059
3606. 0.3286
3607. 0.2821
3608. 0.1625
3609. -0.0015
3610. -0.2042
3611. -0.3934
3612. -0.5175
3613. -0.5553
3614. -0.5048
3615. -0.3865
3616. -0.2224
3617. -0.0651
3618. 0.0526
3619. 0.0949
3620. 0.0444
3621. -0.0681
3622. -0.2083
3623. -0.3280
3624. -0.3927
3625. -0.3708
3626. -0.2724
3627. -0.1139
3628. 0.0846
3629. 0.2383
3630. 0.3241
3631. 0.3331
3632. 0.2658
3633. 0.1480
3634. 0.0247
3635. -0.0697
3636. -0.1173
3637. -0.0967
3638. -0.0193
3639.
3640. >> freqz(DataGH)
3641. >> frpb=1600
3642.
3643. frpb =
3644.
3645. 1600
3646.
3647. >> frsb=9600
3648.
3649. frsb =
3650.
3651. 9600
3652.
3653. >> help buttord
3654. buttord Butterworth filter order selection.
3655. [N, Wn] = buttord(Wp, Ws, Rp, Rs) returns the order N of the lowest
3656. order digital Butterworth filter which has a passband ripple of no more
3657. than Rp dB and a stopband attenuation of at least Rs dB. Wp and Ws are
3658. the passband and stopband edge frequencies, normalized from 0 to 1
3659. (where 1 corresponds to pi radians/sample). For example,
3660. Lowpass: Wp = .1, Ws = .2
3661. Highpass: Wp = .2, Ws = .1
3662. Bandpass: Wp = [.2 .7], Ws = [.1 .8]
3663. Bandstop: Wp = [.1 .8], Ws = [.2 .7]
3664. buttord also returns Wn, the Butterworth natural frequency (or,
3665. the "3 dB frequency") to use with BUTTER to achieve the specifications.
3666.
3667. [N, Wn] = buttord(Wp, Ws, Rp, Rs, 's') does the computation for an
3668. analog filter, in which case Wp and Ws are in radians/second.
3669.
3670. When Rp is chosen as 3 dB, the Wn in BUTTER is equal to Wp in buttord.
3671.
3672. % Example 1:
3673. % For data sampled at 1000 Hz, design a lowpass filter with less than
3674. % 3 dB of ripple in the passband, defined from 0 to 40 Hz, and at
3675. % least 60 dB of attenuation in the stopband, defined from 150 Hz
3676. % to the Nyquist frequency (500 Hz).
3677.
3678. Wp = 40/500; Ws = 150/500;
3679. [n,Wn] = buttord(Wp,Ws,3,60); % Gives mimimum order of filter
3680. [b,a] = butter(n,Wn); % Butterworth filter design
3681. freqz(b,a,512,1000); % Plots the frequency response
3682.
3683. % Example 2:
3684. % Design a bandpass filter with passband of 60 Hz to 200 Hz, with
3685. % less than 3 dB of ripple in the passband, and 40 dB attenuation in
3686. % the stopbands that are 50 Hz wide on both sides of the passband.
3687.
3688. Wp = [60 200]/500; Ws = [50 250]/500; % Normalizing frequency
3689. Rp = 3; Rs = 40;
3690. [n,Wn] = buttord(Wp,Ws,Rp,Rs); % Gives mimimum order of filter
3691. [b,a] = butter(n,Wn); % Butterworth filter design
3692. freqz(b,a,128,1000) % Plots the frequency response
3693.
3694. See also butter, cheb1ord, cheb2ord, ellipord, designfilt.
3695.
3696. Reference page in Help browser
3697. doc buttord
3698.
3699. >> wp=frpb/8000
3700.
3701. wp =
3702.
3703. 0.2000
3704.
3705. >> ws=frsb/8000
3706.
3707. ws =
3708.
3709. 1.2000
3710.
3711. >> [I,J]=buttord(wp,ws,3,60)
3712. Error using buttord (line 73)
3713. The cutoff frequencies must be within the interval of (0,1).
3714.
3715. >> [n,wn]=buttord(wp,ws,3,60)
3716. Error using buttord (line 73)
3717. The cutoff frequencies must be within the interval of (0,1).
3718.
3719. >> wp=frpb/19200
3720.
3721. wp =
3722.
3723. 0.0833
3724.
3725. >> ws=frsb/19200
3726.
3727. ws =
3728.
3729. 0.5000
3730.
3731. >> [n,wn]=buttord(wp,ws,3,60)
3732.
3733. n=
3734.
3735. 4
3736.
3737.
3738. wn =
3739.
3740. 0.1120
3741.
3742. >> [I,J]=butter(n,wn)
3743.
3744. I=
3745.
3746. 0.0006 0.0025 0.0038 0.0025 0.0006
3747.
3748.
3749. J=
3750.
3751. 1.0000 -3.0824 3.6453 -1.9492 0.3964
3752.
3753. >> freqz(I,J)
3754. >> f1=200
3755.
3756. f1 =
3757.
3758. 200
3759.
3760. >> f2=1000
3761.
3762. f2 =
3763.
3764. 1000
3765.
3766. >> f3=5000
3767.
3768. f3 =
3769.
3770. 5000
3771.
3772. >> i=1:100
3773.
3774. i=
3775.
3776. Columns 1 through 13
3777.
3778. 1 2 3 4 5 6 7 8 9 10 11 12 13
3779.
3780. Columns 14 through 26
3781.
3782. 14 15 16 17 18 19 20 21 22 23 24 25 26
3783.
3784. Columns 27 through 39
3785.
3786. 27 28 29 30 31 32 33 34 35 36 37 38 39
3787.
3788. Columns 40 through 52
3789.
3790. 40 41 42 43 44 45 46 47 48 49 50 51 52
3791.
3792. Columns 53 through 65
3793.
3794. 53 54 55 56 57 58 59 60 61 62 63 64 65
3795.
3796. Columns 66 through 78
3797.
3798. 66 67 68 69 70 71 72 73 74 75 76 77 78
3799.
3800. Columns 79 through 91
3801.
3802. 79 80 81 82 83 84 85 86 87 88 89 90 91
3803.
3804. Columns 92 through 100
3805.
3806. 92 93 94 95 96 97 98 99 100
3807.
3808. >> sin1=sin(2*pi*i*fs/fs)
3809.
3810. sin1 =
3811.
3812. 1.0e-13 *
3813.
3814. Columns 1 through 7
3815.
3816. -0.0024 -0.0049 -0.0073 -0.0098 -0.0122 -0.0147 -0.0171
3817.
3818. Columns 8 through 14
3819.
3820. -0.0196 -0.0220 -0.0245 -0.0980 -0.0294 0.0392 -0.0343
3821.
3822. Columns 15 through 21
3823.
3824. -0.1078 -0.0392 0.0294 -0.0441 -0.1176 -0.0490 0.0196
3825.
3826. Columns 22 through 28
3827.
3828. -0.1960 -0.1274 -0.0588 0.0098 0.0784 -0.1372 -0.0686
3829.
3830. Columns 29 through 35
3831.
3832. 0.0000 -0.2156 -0.1470 -0.0784 -0.0098 0.0588 -0.1568
3833.
3834. Columns 36 through 42
3835.
3836. -0.0882 -0.0196 -0.2352 -0.1666 -0.0980 -0.3136 0.0392
3837.
3838. Columns 43 through 49
3839.
3840. -0.1764 -0.3920 -0.0392 -0.2548 0.0980 -0.1176 -0.3332
3841.
3842. Columns 50 through 56
3843.
3844. 0.0196 -0.1960 0.1569 -0.0588 -0.2744 0.0785 -0.1372
3845.
3846. Columns 57 through 63
3847.
3848. -0.3528 0.0000 -0.2156 -0.4312 -0.0784 -0.2940 0.0589
3849.
3850. Columns 64 through 70
3851.
3852. -0.1568 -0.3724 -0.0195 -0.2352 0.1177 -0.0979 -0.3136
3853.
3854. Columns 71 through 77
3855.
3856. 0.0393 -0.1763 -0.3920 -0.0391 -0.2548 -0.4704 -0.1175
3857.
3858. Columns 78 through 84
3859.
3860. -0.3332 0.0197 -0.1959 -0.4116 -0.6272 0.2941 0.0785
3861.
3862. Columns 85 through 91
3863.
3864. -0.1371 -0.3527 -0.5684 -0.7840 0.1373 -0.0783 -0.2939
3865.
3866. Columns 92 through 98
3867.
3868. -0.5096 -0.7252 0.1961 -0.0195 -0.2351 -0.4507 -0.6664
3869.
3870. Columns 99 through 100
3871.
3872. 0.2549 0.0393
3873.
3874. >> sin1=sin(2*pi*i*f1/fs)
3875.
3876. sin1 =
3877.
3878. Columns 1 through 7
3879.
3880. 0.0785 0.1564 0.2334 0.3090 0.3827 0.4540 0.5225
3881.
3882. Columns 8 through 14
3883.
3884. 0.5878 0.6494 0.7071 0.7604 0.8090 0.8526 0.8910
3885.
3886. Columns 15 through 21
3887.
3888. 0.9239 0.9511 0.9724 0.9877 0.9969 1.0000 0.9969
3889.
3890. Columns 22 through 28
3891.
3892. 0.9877 0.9724 0.9511 0.9239 0.8910 0.8526 0.8090
3893.
3894. Columns 29 through 35
3895.
3896. 0.7604 0.7071 0.6494 0.5878 0.5225 0.4540 0.3827
3897.
3898. Columns 36 through 42
3899.
3900. 0.3090 0.2334 0.1564 0.0785 0.0000 -0.0785 -0.1564
3901.
3902. Columns 43 through 49
3903.
3904. -0.2334 -0.3090 -0.3827 -0.4540 -0.5225 -0.5878 -0.6494
3905.
3906. Columns 50 through 56
3907.
3908. -0.7071 -0.7604 -0.8090 -0.8526 -0.8910 -0.9239 -0.9511
3909.
3910. Columns 57 through 63
3911.
3912. -0.9724 -0.9877 -0.9969 -1.0000 -0.9969 -0.9877 -0.9724
3913.
3914. Columns 64 through 70
3915.
3916. -0.9511 -0.9239 -0.8910 -0.8526 -0.8090 -0.7604 -0.7071
3917.
3918. Columns 71 through 77
3919.
3920. -0.6494 -0.5878 -0.5225 -0.4540 -0.3827 -0.3090 -0.2334
3921.
3922. Columns 78 through 84
3923.
3924. -0.1564 -0.0785 -0.0000 0.0785 0.1564 0.2334 0.3090
3925.
3926. Columns 85 through 91
3927.
3928. 0.3827 0.4540 0.5225 0.5878 0.6494 0.7071 0.7604
3929.
3930. Columns 92 through 98
3931.
3932. 0.8090 0.8526 0.8910 0.9239 0.9511 0.9724 0.9877
3933.
3934. Columns 99 through 100
3935.
3936. 0.9969 1.0000
3937.
3938. >> sin2=sin(2*pi*i*f2/fs)
3939.
3940. sin2 =
3941.
3942. Columns 1 through 7
3943.
3944. 0.3827 0.7071 0.9239 1.0000 0.9239 0.7071 0.3827
3945.
3946. Columns 8 through 14
3947.
3948. 0.0000 -0.3827 -0.7071 -0.9239 -1.0000 -0.9239 -0.7071
3949.
3950. Columns 15 through 21
3951.
3952. -0.3827 -0.0000 0.3827 0.7071 0.9239 1.0000 0.9239
3953.
3954. Columns 22 through 28
3955.
3956. 0.7071 0.3827 0.0000 -0.3827 -0.7071 -0.9239 -1.0000
3957.
3958. Columns 29 through 35
3959.
3960. -0.9239 -0.7071 -0.3827 -0.0000 0.3827 0.7071 0.9239
3961.
3962. Columns 36 through 42
3963.
3964. 1.0000 0.9239 0.7071 0.3827 0.0000 -0.3827 -0.7071
3965.
3966. Columns 43 through 49
3967.
3968. -0.9239 -1.0000 -0.9239 -0.7071 -0.3827 -0.0000 0.3827
3969.
3970. Columns 50 through 56
3971.
3972. 0.7071 0.9239 1.0000 0.9239 0.7071 0.3827 0.0000
3973.
3974. Columns 57 through 63
3975.
3976. -0.3827 -0.7071 -0.9239 -1.0000 -0.9239 -0.7071 -0.3827
3977.
3978. Columns 64 through 70
3979.
3980. -0.0000 0.3827 0.7071 0.9239 1.0000 0.9239 0.7071
3981.
3982. Columns 71 through 77
3983.
3984. 0.3827 0.0000 -0.3827 -0.7071 -0.9239 -1.0000 -0.9239
3985.
3986. Columns 78 through 84
3987.
3988. -0.7071 -0.3827 -0.0000 0.3827 0.7071 0.9239 1.0000
3989.
3990. Columns 85 through 91
3991.
3992. 0.9239 0.7071 0.3827 0.0000 -0.3827 -0.7071 -0.9239
3993.
3994. Columns 92 through 98
3995.
3996. -1.0000 -0.9239 -0.7071 -0.3827 -0.0000 0.3827 0.7071
3997.
3998. Columns 99 through 100
3999.
4000. 0.9239 1.0000
4001.
4002. >> sin3=sin(2*pi*i*f3/fs)
4003.
4004. sin3 =
4005.
4006. Columns 1 through 7
4007.
4008. 0.9239 -0.7071 -0.3827 1.0000 -0.3827 -0.7071 0.9239
4009.
4010. Columns 8 through 14
4011.
4012. 0.0000 -0.9239 0.7071 0.3827 -1.0000 0.3827 0.7071
4013.
4014. Columns 15 through 21
4015.
4016. -0.9239 -0.0000 0.9239 -0.7071 -0.3827 1.0000 -0.3827
4017.
4018. Columns 22 through 28
4019.
4020. -0.7071 0.9239 -0.0000 -0.9239 0.7071 0.3827 -1.0000
4021.
4022. Columns 29 through 35
4023.
4024. 0.3827 0.7071 -0.9239 -0.0000 0.9239 -0.7071 -0.3827
4025.
4026. Columns 36 through 42
4027.
4028. 1.0000 -0.3827 -0.7071 0.9239 0.0000 -0.9239 0.7071
4029.
4030. Columns 43 through 49
4031.
4032. 0.3827 -1.0000 0.3827 0.7071 -0.9239 0.0000 0.9239
4033.
4034. Columns 50 through 56
4035.
4036. -0.7071 -0.3827 1.0000 -0.3827 -0.7071 0.9239 0.0000
4037.
4038. Columns 57 through 63
4039.
4040. -0.9239 0.7071 0.3827 -1.0000 0.3827 0.7071 -0.9239
4041.
4042. Columns 64 through 70
4043.
4044. -0.0000 0.9239 -0.7071 -0.3827 1.0000 -0.3827 -0.7071
4045.
4046. Columns 71 through 77
4047.
4048. 0.9239 0.0000 -0.9239 0.7071 0.3827 -1.0000 0.3827
4049.
4050. Columns 78 through 84
4051.
4052. 0.7071 -0.9239 -0.0000 0.9239 -0.7071 -0.3827 1.0000
4053.
4054. Columns 85 through 91
4055.
4056. -0.3827 -0.7071 0.9239 -0.0000 -0.9239 0.7071 0.3827
4057.
4058. Columns 92 through 98
4059.
4060. -1.0000 0.3827 0.7071 -0.9239 0.0000 0.9239 -0.7071
4061.
4062. Columns 99 through 100
4063.
4064. -0.3827 1.0000
4065.
4066. >> sintot=(sin1+sin2+sin3)/3
4067.
4068. sintot =
4069.
4070. Columns 1 through 7
4071.
4072. 0.4617 0.0521 0.2582 0.7697 0.3080 0.1513 0.6097
4073.
4074. Columns 8 through 14
4075.
4076. 0.1959 -0.2190 0.2357 0.0731 -0.3970 0.1038 0.2970
4077.
4078. Columns 15 through 21
4079.
4080. -0.1276 0.3170 0.7596 0.3292 0.5127 1.0000 0.5127
4081.
4082. Columns 22 through 28
4083.
4084. 0.3292 0.7596 0.3170 -0.1276 0.2970 0.1038 -0.3970
4085.
4086. Columns 29 through 35
4087.
4088. 0.0731 0.2357 -0.2190 0.1959 0.6097 0.1513 0.3080
4089.
4090. Columns 36 through 42
4091.
4092. 0.7697 0.2582 0.0521 0.4617 0.0000 -0.4617 -0.0521
4093.
4094. Columns 43 through 49
4095.
4096. -0.2582 -0.7697 -0.3080 -0.1513 -0.6097 -0.1959 0.2190
4097.
4098. Columns 50 through 56
4099.
4100. -0.2357 -0.0731 0.3970 -0.1038 -0.2970 0.1276 -0.3170
4101.
4102. Columns 57 through 63
4103.
4104. -0.7596 -0.3292 -0.5127 -1.0000 -0.5127 -0.3292 -0.7596
4105.
4106. Columns 64 through 70
4107.
4108. -0.3170 0.1276 -0.2970 -0.1038 0.3970 -0.0731 -0.2357
4109.
4110. Columns 71 through 77
4111.
4112. 0.2190 -0.1959 -0.6097 -0.1513 -0.3080 -0.7697 -0.2582
4113.
4114. Columns 78 through 84
4115.
4116. -0.0521 -0.4617 -0.0000 0.4617 0.0521 0.2582 0.7697
4117.
4118. Columns 85 through 91
4119.
4120. 0.3080 0.1513 0.6097 0.1959 -0.2190 0.2357 0.0731
4121.
4122. Columns 92 through 98
4123.
4124. -0.3970 0.1038 0.2970 -0.1276 0.3170 0.7596 0.3292
4125.
4126. Columns 99 through 100
4127.
4128. 0.5127 1.0000
4129.
4130. >> fco=800
4131.
4132. fco =
4133.
4134. 800
4135.
4136. >> N=32
4137.
4138. N=
4139.
4140. 32
4141.
4142. >> help butter
4143. butter Butterworth digital and analog filter design.
4144. [B,A] = butter(N,Wn) designs an Nth order lowpass digital
4145. Butterworth filter and returns the filter coefficients in length
4146. N+1 vectors B (numerator) and A (denominator). The coefficients
4147. are listed in descending powers of z. The cutoff frequency
4148. Wn must be 0.0 < Wn < 1.0, with 1.0 corresponding to
4149. half the sample rate.
4150.
4151. If Wn is a two-element vector, Wn = [W1 W2], butter returns an
4152. order 2N bandpass filter with passband W1 < W < W2.
4153. [B,A] = butter(N,Wn,'high') designs a highpass filter.
4154. [B,A] = butter(N,Wn,'low') designs a lowpass filter.
4155. [B,A] = butter(N,Wn,'stop') is a bandstop filter if Wn = [W1 W2].
4156.
4157. When used with three left-hand arguments, as in
4158. [Z,P,K] = butter(...), the zeros and poles are returned in
4159. length N column vectors Z and P, and the gain in scalar K.
4160.
4161. When used with four left-hand arguments, as in
4162. [A,B,C,D] = butter(...), state-space matrices are returned.
4163.
4164. butter(N,Wn,'s'), butter(N,Wn,'high','s') and butter(N,Wn,'stop','s')
4165. design analog Butterworth filters. In this case, Wn is in [rad/s]
4166. and it can be greater than 1.0.
4167.
4168. % Example 1:
4169. % For data sampled at 1000 Hz, design a 9th-order highpass
4170. % Butterworth filter with cutoff frequency of 300Hz.
4171.
4172. Wn = 300/500; % Normalized cutoff frequency
4173. [z,p,k] = butter(9,Wn,'high'); % Butterworth filter
4174. [sos] = zp2sos(z,p,k); % Convert to SOS form
4175. h = fvtool(sos); % Plot magnitude response
4176.
4177. % Example 2:
4178. % Design a 4th-order butterworth band-pass filter which passes
4179. % frequencies between 0.15 and 0.3.
4180.
4181. [b,a]=butter(2,[.15,.3]); % Bandpass digital filter design
4182. h = fvtool(b,a); % Visualize filter
4183.
4184. See also buttord, besself, cheby1, cheby2, ellip, freqz,
4185. filter, designfilt.
4186.
4187. Reference page in Help browser
4188. doc signal/butter
4189.
4190. >> WN=fco*2/16000
4191.
4192. WN =
4193.
4194. 0.1000
4195.
4196. >> [K,L]=butter(N,WN)
4197.
4198. K=
4199.
4200. Columns 1 through 13
4201.
4202. 0 0 0 0 0 0 0 0 0 0 0 0 0
4203.
4204. Columns 14 through 26
4205.
4206. 0 0 0 0 0 0 0 0 0 0 0 0 0
4207.
4208. Columns 27 through 33
4209.
4210. 0 0 0 0 0 0 0
4211.
4212.
4213. L=
4214.
4215. 1.0e+07 *
4216.
4217. Columns 1 through 7
4218.
4219. 0.0000 -0.0000 0.0000 -0.0003 0.0015 -0.0067 0.0243
4220.
4221. Columns 8 through 14
4222.
4223. -0.0730 0.1845 -0.3986 0.7438 -1.2085 1.7206 -2.1566
4224.
4225. Columns 15 through 21
4226.
4227. 2.3876 -2.3405 2.0341 -1.5679 1.0715 -0.6483 0.3464
4228.
4229. Columns 22 through 28
4230.
4231. -0.1629 0.0671 -0.0241 0.0075 -0.0020 0.0004 -0.0001
4232.
4233. Columns 29 through 33
4234.
4235. 0.0000 -0.0000 0.0000 -0.0000 0.0000
4236.
4237. >> DataKL=filter(K,L,sintot)
4238.
4239. DataKL =
4240.
4241. Columns 1 through 13
4242.
4243. 0 0 0 0 0 0 0 0 0 0 0 0 0
4244.
4245. Columns 14 through 26
4246.
4247. 0 0 0 0 0 0 0 0 0 0 0 0 0
4248.
4249. Columns 27 through 39
4250.
4251. 0 0 0 0 0 0 0 0 0 0 0 0 0
4252.
4253. Columns 40 through 52
4254.
4255. 0 0 0 0 0 0 0 0 0 0 0 0 0
4256.
4257. Columns 53 through 65
4258.
4259. 0 0 0 0 0 0 0 0 0 0 0 0 0
4260.
4261. Columns 66 through 78
4262.
4263. 0 0 0 0 0 0 0 0 0 0 0 0 0
4264.
4265. Columns 79 through 91
4266.
4267. 0 0 0 0 0 0 0 0 0 0 0 0 0
4268.
4269. Columns 92 through 100
4270.
4271. 0 0 0 0 0 0 0 0 0
4272.
4273. >> help FIR
4274.
4275. FIR not found.
4276.
4277. Use the Help browser search field to search the documentation, or
4278. type "help help" for help command options, such as help for methods.
4279.
4280. >> help fir
4281.
4282. fir not found.
4283.
4284. Use the Help browser search field to search the documentation, or
4285. type "help help" for help command options, such as help for methods.
4286.
4287. >> help fir1
4288. fir1 FIR filter design using the window method.
4289. B = fir1(N,Wn) designs an N'th order lowpass FIR digital filter
4290. and returns the filter coefficients in length N+1 vector B.
4291. The cut-off frequency Wn must be between 0 < Wn < 1.0, with 1.0
4292. corresponding to half the sample rate. The filter B is real and
4293. has linear phase. The normalized gain of the filter at Wn is
4294. -6 dB.
4295.
4296. B = fir1(N,Wn,'high') designs an N'th order highpass filter.
4297. You can also use B = fir1(N,Wn,'low') to design a lowpass filter.
4298.
4299. If Wn is a two-element vector, Wn = [W1 W2], fir1 returns an
4300. order N bandpass filter with passband W1 < W < W2. You can
4301. also specify B = fir1(N,Wn,'bandpass'). If Wn = [W1 W2],
4302. B = fir1(N,Wn,'stop') will design a bandstop filter.
4303.
4304. If Wn is a multi-element vector,
4305. Wn = [W1 W2 W3 W4 W5 ... WN],
4306. fir1 returns an order N multiband filter with bands
4307. 0 < W < W1, W1 < W < W2, ..., WN < W < 1.
4308. B = fir1(N,Wn,'DC-1') makes the first band a passband.
4309. B = fir1(N,Wn,'DC-0') makes the first band a stopband.
4310.
4311. B = fir1(N,Wn,WIN) designs an N-th order FIR filter using
4312. the N+1 length vector WIN to window the impulse response.
4313. If empty or omitted, fir1 uses a Hamming window of length N+1.
4314. For a complete list of available windows, see the help for the
4315. WINDOW function. KAISER and CHEBWIN can be specified with an
4316. optional trailing argument. For example, B = fir1(N,Wn,kaiser(N+1,4))
4317. uses a Kaiser window with beta=4. B = fir1(N,Wn,'high',chebwin(N+1,R))
4318. uses a Chebyshev window with R decibels of relative sidelobe
4319. attenuation.
4320.
4321. For filters with a gain other than zero at Fs/2, e.g., highpass
4322. and bandstop filters, N must be even. Otherwise, N will be
4323. incremented by one. In this case the window length should be
4324. specified as N+2.
4325.
4326. By default, the filter is scaled so the center of the first pass band
4327. has magnitude exactly one after windowing. Use a trailing 'noscale'
4328. argument to prevent this scaling, e.g. B = fir1(N,Wn,'noscale'),
4329. B = fir1(N,Wn,'high','noscale'), B = fir1(N,Wn,wind,'noscale'). You
4330. can also specify the scaling explicitly, e.g. fir1(N,Wn,'scale'), etc.
4331.
4332. % Example 1:
4333. % Design a 48th-order FIR bandpass filter with passband
4334. % 0.35 <= w <= 0.65.
4335.
4336. b = fir1(48,[0.35 0.65]); % Window-based FIR filter design
4337. freqz(b,1,512) % Frequency response of filter
4338.
4339. % Example 2:
4340. % The chirp.mat file contains a signal, y, that has most of its power
4341. % above fs/4, or half the Nyquist frequency. Design a 34th-order FIR
4342. % highpass filter to attenuate the components of the signal below
4343. % fs/4. Use a cutoff frequency of 0.48 and a Chebyshev window with
4344. % 30 dB of ripple.
4345.
4346. load chirp; % Load data (y and Fs) into workspace
4347. y = y + 0.5*rand(size(y)); % Adding noise
4348. b = fir1(34,0.48,'high',chebwin(35,30)); % FIR filter design
4349. freqz(b,1,512); % Frequency response of filter
4350. output = filtfilt(b,1,y); % Zero-phase digital filtering
4351. figure;
4352. subplot(211); plot(y,'b'); title('Original Signal')
4353. subplot(212); plot(output,'g'); title('Filtered Signal')
4354.
4355. See also kaiserord, fircls1, fir2, firls, fircls, cfirpm,
4356. firpm, freqz, filter, window, designfilt.
4357.
4358. Reference page in Help browser
4359. doc fir1
4360.
4361. >> help butterworth
4362.
4363. butterworth not found.
4364.
4365. Use the Help browser search field to search the documentation, or
4366. type "help help" for help command options, such as help for methods.
4367.
4368. >> help buttord
4369. buttord Butterworth filter order selection.
4370. [N, Wn] = buttord(Wp, Ws, Rp, Rs) returns the order N of the lowest
4371. order digital Butterworth filter which has a passband ripple of no more
4372. than Rp dB and a stopband attenuation of at least Rs dB. Wp and Ws are
4373. the passband and stopband edge frequencies, normalized from 0 to 1
4374. (where 1 corresponds to pi radians/sample). For example,
4375. Lowpass: Wp = .1, Ws = .2
4376. Highpass: Wp = .2, Ws = .1
4377. Bandpass: Wp = [.2 .7], Ws = [.1 .8]
4378. Bandstop: Wp = [.1 .8], Ws = [.2 .7]
4379. buttord also returns Wn, the Butterworth natural frequency (or,
4380. the "3 dB frequency") to use with BUTTER to achieve the specifications.
4381.
4382. [N, Wn] = buttord(Wp, Ws, Rp, Rs, 's') does the computation for an
4383. analog filter, in which case Wp and Ws are in radians/second.
4384.
4385. When Rp is chosen as 3 dB, the Wn in BUTTER is equal to Wp in buttord.
4386.
4387. % Example 1:
4388. % For data sampled at 1000 Hz, design a lowpass filter with less than
4389. % 3 dB of ripple in the passband, defined from 0 to 40 Hz, and at
4390. % least 60 dB of attenuation in the stopband, defined from 150 Hz
4391. % to the Nyquist frequency (500 Hz).
4392.
4393. Wp = 40/500; Ws = 150/500;
4394. [n,Wn] = buttord(Wp,Ws,3,60); % Gives mimimum order of filter
4395. [b,a] = butter(n,Wn); % Butterworth filter design
4396. freqz(b,a,512,1000); % Plots the frequency response
4397.
4398. % Example 2:
4399. % Design a bandpass filter with passband of 60 Hz to 200 Hz, with
4400. % less than 3 dB of ripple in the passband, and 40 dB attenuation in
4401. % the stopbands that are 50 Hz wide on both sides of the passband.
4402.
4403. Wp = [60 200]/500; Ws = [50 250]/500; % Normalizing frequency
4404. Rp = 3; Rs = 40;
4405. [n,Wn] = buttord(Wp,Ws,Rp,Rs); % Gives mimimum order of filter
4406. [b,a] = butter(n,Wn); % Butterworth filter design
4407. freqz(b,a,128,1000) % Plots the frequency response
4408.
4409. See also butter, cheb1ord, cheb2ord, ellipord, designfilt.
4410.
4411. Reference page in Help browser
4412. doc buttord
4413.
4414. >> help filter
4415. filter One-dimensional digital filter.
4416. Y = filter(B,A,X) filters the data in vector X with the
4417. filter described by vectors A and B to create the filtered
4418. data Y. The filter is a "Direct Form II Transposed"
4419. implementation of the standard difference equation:
4420.
4421. a(1)*y(n) = b(1)*x(n) + b(2)*x(n-1) + ... + b(nb+1)*x(n-nb)
4422. - a(2)*y(n-1) - ... - a(na+1)*y(n-na)
4423.
4424. If a(1) is not equal to 1, filter normalizes the filter
4425. coefficients by a(1).
4426.
4427. filter always operates along the first non-singleton dimension,
4428. namely dimension 1 for column vectors and non-trivial matrices,
4429. and dimension 2 for row vectors.
4430.
4431. [Y,Zf] = filter(B,A,X,Zi) gives access to initial and final
4432. conditions, Zi and Zf, of the delays. Zi is a vector of length
4433. MAX(LENGTH(A),LENGTH(B))-1, or an array with the leading dimension
4434. of size MAX(LENGTH(A),LENGTH(B))-1 and with remaining dimensions
4435. matching those of X.
4436.
4437. filter(B,A,X,[],DIM) or filter(B,A,X,Zi,DIM) operates along the
4438. dimension DIM.
4439.
4440. Tip: If you have the Signal Processing Toolbox, you can design a
4441. filter, D, using DESIGNFILT. Then you can use Y = filter(D,X) to
4442. filter your data.
4443.
4444. See also filter2, filtfilt, filtic, designfilt.
4445.
4446. Note: FILTFILT, FILTIC and DESIGNFILT are in the Signal Processing
4447. Toolbox.
4448.
4449. Overloaded methods:
4450. SigLogSelector.filter
4451. gf/filter
4452. channel.filter
4453. gpuArray/filter
4454. mfilt.filter
4455. adaptfilt.filter
4456. fints/filter
4457. fxptui.filter
4458. dfilt.filter
4459. timeseries/filter
4460.
4461. Reference page in Help browser
4462. doc filter
4463.
4464. >> help buttord
4465. buttord Butterworth filter order selection.
4466. [N, Wn] = buttord(Wp, Ws, Rp, Rs) returns the order N of the lowest
4467. order digital Butterworth filter which has a passband ripple of no more
4468. than Rp dB and a stopband attenuation of at least Rs dB. Wp and Ws are
4469. the passband and stopband edge frequencies, normalized from 0 to 1
4470. (where 1 corresponds to pi radians/sample). For example,
4471. Lowpass: Wp = .1, Ws = .2
4472. Highpass: Wp = .2, Ws = .1
4473. Bandpass: Wp = [.2 .7], Ws = [.1 .8]
4474. Bandstop: Wp = [.1 .8], Ws = [.2 .7]
4475. buttord also returns Wn, the Butterworth natural frequency (or,
4476. the "3 dB frequency") to use with BUTTER to achieve the specifications.
4477.
4478. [N, Wn] = buttord(Wp, Ws, Rp, Rs, 's') does the computation for an
4479. analog filter, in which case Wp and Ws are in radians/second.
4480.
4481. When Rp is chosen as 3 dB, the Wn in BUTTER is equal to Wp in buttord.
4482.
4483. % Example 1:
4484. % For data sampled at 1000 Hz, design a lowpass filter with less than
4485. % 3 dB of ripple in the passband, defined from 0 to 40 Hz, and at
4486. % least 60 dB of attenuation in the stopband, defined from 150 Hz
4487. % to the Nyquist frequency (500 Hz).
4488.
4489. Wp = 40/500; Ws = 150/500;
4490. [n,Wn] = buttord(Wp,Ws,3,60); % Gives mimimum order of filter
4491. [b,a] = butter(n,Wn); % Butterworth filter design
4492. freqz(b,a,512,1000); % Plots the frequency response
4493.
4494. % Example 2:
4495. % Design a bandpass filter with passband of 60 Hz to 200 Hz, with
4496. % less than 3 dB of ripple in the passband, and 40 dB attenuation in
4497. % the stopbands that are 50 Hz wide on both sides of the passband.
4498.
4499. Wp = [60 200]/500; Ws = [50 250]/500; % Normalizing frequency
4500. Rp = 3; Rs = 40;
4501. [n,Wn] = buttord(Wp,Ws,Rp,Rs); % Gives mimimum order of filter
4502. [b,a] = butter(n,Wn); % Butterworth filter design
4503. freqz(b,a,128,1000) % Plots the frequency response
4504.
4505. See also butter, cheb1ord, cheb2ord, ellipord, designfilt.
4506.
4507. Reference page in Help browser
4508. doc buttord
4509.
4510. >> freqz(DataKL)
4511. >> WN
4512.
4513. WN =
4514.
4515. 0.1000
4516.
4517. >> N
4518.
4519. N=
4520.
4521. 32
4522.
4523. >> [K,L]=butter(N,WN)
4524.
4525. K=
4526.
4527. Columns 1 through 13
4528.
4529. 0 0 0 0 0 0 0 0 0 0 0 0 0
4530.
4531. Columns 14 through 26
4532.
4533. 0 0 0 0 0 0 0 0 0 0 0 0 0
4534.
4535. Columns 27 through 33
4536.
4537. 0 0 0 0 0 0 0
4538.
4539.
4540. L=
4541.
4542. 1.0e+07 *
4543.
4544. Columns 1 through 7
4545.
4546. 0.0000 -0.0000 0.0000 -0.0003 0.0015 -0.0067 0.0243
4547.
4548. Columns 8 through 14
4549.
4550. -0.0730 0.1845 -0.3986 0.7438 -1.2085 1.7206 -2.1566
4551.
4552. Columns 15 through 21
4553.
4554. 2.3876 -2.3405 2.0341 -1.5679 1.0715 -0.6483 0.3464
4555.
4556. Columns 22 through 28
4557.
4558. -0.1629 0.0671 -0.0241 0.0075 -0.0020 0.0004 -0.0001
4559.
4560. Columns 29 through 33
4561.
4562. 0.0000 -0.0000 0.0000 -0.0000 0.0000
4563.
4564. >> y=butter(K,L,sintot)
4565. Error using butter (line 58)
4566. Wn must be a one or two element vector.
4567.
4568. >> y=filter(K,L,sintot)
4569.
4570. y=
4571.
4572. Columns 1 through 13
4573.
4574. 0 0 0 0 0 0 0 0 0 0 0 0 0
4575.
4576. Columns 14 through 26
4577.
4578. 0 0 0 0 0 0 0 0 0 0 0 0 0
4579.
4580. Columns 27 through 39
4581.
4582. 0 0 0 0 0 0 0 0 0 0 0 0 0
4583.
4584. Columns 40 through 52
4585.
4586. 0 0 0 0 0 0 0 0 0 0 0 0 0
4587.
4588. Columns 53 through 65
4589.
4590. 0 0 0 0 0 0 0 0 0 0 0 0 0
4591.
4592. Columns 66 through 78
4593.
4594. 0 0 0 0 0 0 0 0 0 0 0 0 0
4595.
4596. Columns 79 through 91
4597.
4598. 0 0 0 0 0 0 0 0 0 0 0 0 0
4599.
4600. Columns 92 through 100
4601.
4602. 0 0 0 0 0 0 0 0 0
4603.
4604. >> sintot
4605.
4606. sintot =
4607.
4608. Columns 1 through 7
4609.
4610. 0.4617 0.0521 0.2582 0.7697 0.3080 0.1513 0.6097
4611.
4612. Columns 8 through 14
4613.
4614. 0.1959 -0.2190 0.2357 0.0731 -0.3970 0.1038 0.2970
4615.
4616. Columns 15 through 21
4617.
4618. -0.1276 0.3170 0.7596 0.3292 0.5127 1.0000 0.5127
4619.
4620. Columns 22 through 28
4621.
4622. 0.3292 0.7596 0.3170 -0.1276 0.2970 0.1038 -0.3970
4623.
4624. Columns 29 through 35
4625.
4626. 0.0731 0.2357 -0.2190 0.1959 0.6097 0.1513 0.3080
4627.
4628. Columns 36 through 42
4629.
4630. 0.7697 0.2582 0.0521 0.4617 0.0000 -0.4617 -0.0521
4631.
4632. Columns 43 through 49
4633.
4634. -0.2582 -0.7697 -0.3080 -0.1513 -0.6097 -0.1959 0.2190
4635.
4636. Columns 50 through 56
4637.
4638. -0.2357 -0.0731 0.3970 -0.1038 -0.2970 0.1276 -0.3170
4639.
4640. Columns 57 through 63
4641.
4642. -0.7596 -0.3292 -0.5127 -1.0000 -0.5127 -0.3292 -0.7596
4643.
4644. Columns 64 through 70
4645.
4646. -0.3170 0.1276 -0.2970 -0.1038 0.3970 -0.0731 -0.2357
4647.
4648. Columns 71 through 77
4649.
4650. 0.2190 -0.1959 -0.6097 -0.1513 -0.3080 -0.7697 -0.2582
4651.
4652. Columns 78 through 84
4653.
4654. -0.0521 -0.4617 -0.0000 0.4617 0.0521 0.2582 0.7697
4655.
4656. Columns 85 through 91
4657.
4658. 0.3080 0.1513 0.6097 0.1959 -0.2190 0.2357 0.0731
4659.
4660. Columns 92 through 98
4661.
4662. -0.3970 0.1038 0.2970 -0.1276 0.3170 0.7596 0.3292
4663.
4664. Columns 99 through 100
4665.
4666. 0.5127 1.0000
4667.
4668. >> [K,L]=butter(5,WN)
4669.
4670. K=
4671.
4672. 1.0e-03 *
4673.
4674. 0.0598 0.2990 0.5980 0.5980 0.2990 0.0598
4675.
4676.
4677. L=
4678.
4679. 1.0000 -3.9845 6.4349 -5.2536 2.1651 -0.3599
4680.
4681. >> y=filter(K,L,sintot)
4682.
4683. y=
4684.
4685. Columns 1 through 7
4686.
4687. 0.0000 0.0003 0.0011 0.0035 0.0084 0.0172 0.0313
4688.
4689. Columns 8 through 14
4690.
4691. 0.0518 0.0788 0.1116 0.1485 0.1864 0.2219 0.2513
4692.
4693. Columns 15 through 21
4694.
4695. 0.2713 0.2797 0.2759 0.2608 0.2374 0.2099 0.1833
4696.
4697. Columns 22 through 28
4698.
4699. 0.1628 0.1531 0.1573 0.1766 0.2100 0.2545 0.3050
4700.
4701. Columns 29 through 35
4702.
4703. 0.3554 0.3995 0.4313 0.4467 0.4432 0.4211 0.3828
4704.
4705. Columns 36 through 42
4706.
4707. 0.3329 0.2774 0.2226 0.1747 0.1383 0.1162 0.1088
4708.
4709. Columns 43 through 49
4710.
4711. 0.1141 0.1281 0.1452 0.1594 0.1651 0.1577 0.1349
4712.
4713. Columns 50 through 56
4714.
4715. 0.0963 0.0441 -0.0175 -0.0828 -0.1456 -0.2000 -0.2413
4716.
4717. Columns 57 through 63
4718.
4719. -0.2668 -0.2760 -0.2707 -0.2548 -0.2338 -0.2133 -0.1991
4720.
4721. Columns 64 through 70
4722.
4723. -0.1956 -0.2051 -0.2280 -0.2622 -0.3036 -0.3468 -0.3856
4724.
4725. Columns 71 through 77
4726.
4727. -0.4144 -0.4287 -0.4261 -0.4061 -0.3710 -0.3248 -0.2730
4728.
4729. Columns 78 through 84
4730.
4731. -0.2217 -0.1768 -0.1426 -0.1220 -0.1153 -0.1206 -0.1340
4732.
4733. Columns 85 through 91
4734.
4735. -0.1501 -0.1630 -0.1673 -0.1587 -0.1346 -0.0950 -0.0422
4736.
4737. Columns 92 through 98
4738.
4739. 0.0198 0.0852 0.1478 0.2019 0.2428 0.2679 0.2765
4740.
4741. Columns 99 through 100
4742.
4743. 0.2708 0.2546
4744.
4745. >> freqz(y)
4746. >> [K,L]=butter(32,WN)
4747.
4748. K=
4749.
4750. Columns 1 through 13
4751.
4752. 0 0 0 0 0 0 0 0 0 0 0 0 0
4753.
4754. Columns 14 through 26
4755.
4756. 0 0 0 0 0 0 0 0 0 0 0 0 0
4757.
4758. Columns 27 through 33
4759.
4760. 0 0 0 0 0 0 0
4761.
4762.
4763. L=
4764.
4765. 1.0e+07 *
4766.
4767. Columns 1 through 7
4768.
4769. 0.0000 -0.0000 0.0000 -0.0003 0.0015 -0.0067 0.0243
4770.
4771. Columns 8 through 14
4772.
4773. -0.0730 0.1845 -0.3986 0.7438 -1.2085 1.7206 -2.1566
4774.
4775. Columns 15 through 21
4776.
4777. 2.3876 -2.3405 2.0341 -1.5679 1.0715 -0.6483 0.3464
4778.
4779. Columns 22 through 28
4780.
4781. -0.1629 0.0671 -0.0241 0.0075 -0.0020 0.0004 -0.0001
4782.
4783. Columns 29 through 33
4784.
4785. 0.0000 -0.0000 0.0000 -0.0000 0.0000
4786.
4787. >> y=filter(K,L,sintot)
4788.
4789. y=
4790.
4791. Columns 1 through 13
4792.
4793. 0 0 0 0 0 0 0 0 0 0 0 0 0
4794.
4795. Columns 14 through 26
4796.
4797. 0 0 0 0 0 0 0 0 0 0 0 0 0
4798.
4799. Columns 27 through 39
4800.
4801. 0 0 0 0 0 0 0 0 0 0 0 0 0
4802.
4803. Columns 40 through 52
4804.
4805. 0 0 0 0 0 0 0 0 0 0 0 0 0
4806.
4807. Columns 53 through 65
4808.
4809. 0 0 0 0 0 0 0 0 0 0 0 0 0
4810.
4811. Columns 66 through 78
4812.
4813. 0 0 0 0 0 0 0 0 0 0 0 0 0
4814.
4815. Columns 79 through 91
4816.
4817. 0 0 0 0 0 0 0 0 0 0 0 0 0
4818.
4819. Columns 92 through 100
4820.
4821. 0 0 0 0 0 0 0 0 0
4822.
4823. >> freqz(y)
4824. >> [K,L]=butter(5,WN)
4825.
4826. K=
4827.
4828. 1.0e-03 *
4829.
4830. 0.0598 0.2990 0.5980 0.5980 0.2990 0.0598
4831.
4832.
4833. L=
4834.
4835. 1.0000 -3.9845 6.4349 -5.2536 2.1651 -0.3599
4836.
4837. >> y=filter(K,L,sintot)
4838.
4839. y=
4840.
4841. Columns 1 through 7
4842.
4843. 0.0000 0.0003 0.0011 0.0035 0.0084 0.0172 0.0313
4844.
4845. Columns 8 through 14
4846.
4847. 0.0518 0.0788 0.1116 0.1485 0.1864 0.2219 0.2513
4848.
4849. Columns 15 through 21
4850.
4851. 0.2713 0.2797 0.2759 0.2608 0.2374 0.2099 0.1833
4852.
4853. Columns 22 through 28
4854.
4855. 0.1628 0.1531 0.1573 0.1766 0.2100 0.2545 0.3050
4856.
4857. Columns 29 through 35
4858.
4859. 0.3554 0.3995 0.4313 0.4467 0.4432 0.4211 0.3828
4860.
4861. Columns 36 through 42
4862.
4863. 0.3329 0.2774 0.2226 0.1747 0.1383 0.1162 0.1088
4864.
4865. Columns 43 through 49
4866.
4867. 0.1141 0.1281 0.1452 0.1594 0.1651 0.1577 0.1349
4868.
4869. Columns 50 through 56
4870.
4871. 0.0963 0.0441 -0.0175 -0.0828 -0.1456 -0.2000 -0.2413
4872.
4873. Columns 57 through 63
4874.
4875. -0.2668 -0.2760 -0.2707 -0.2548 -0.2338 -0.2133 -0.1991
4876.
4877. Columns 64 through 70
4878.
4879. -0.1956 -0.2051 -0.2280 -0.2622 -0.3036 -0.3468 -0.3856
4880.
4881. Columns 71 through 77
4882.
4883. -0.4144 -0.4287 -0.4261 -0.4061 -0.3710 -0.3248 -0.2730
4884.
4885. Columns 78 through 84
4886.
4887. -0.2217 -0.1768 -0.1426 -0.1220 -0.1153 -0.1206 -0.1340
4888.
4889. Columns 85 through 91
4890.
4891. -0.1501 -0.1630 -0.1673 -0.1587 -0.1346 -0.0950 -0.0422
4892.
4893. Columns 92 through 98
4894.
4895. 0.0198 0.0852 0.1478 0.2019 0.2428 0.2679 0.2765
4896.
4897. Columns 99 through 100
4898.
4899. 0.2708 0.2546
4900.
4901. >> freqz(y)
4902. >> plot(y)
4903. >> [K,L]=butter(16,WN)
4904.
4905. K=
4906.
4907. 1.0e-09 *
4908.
4909. Columns 1 through 7
4910.
4911. 0.0000 0.0005 0.0038 0.0175 0.0570 0.1368 0.2507
4912.
4913. Columns 8 through 14
4914.
4915. 0.3582 0.4029 0.3582 0.2507 0.1368 0.0570 0.0175
4916.
4917. Columns 15 through 17
4918.
4919. 0.0038 0.0005 0.0000
4920.
4921.
4922. L=
4923.
4924. 1.0e+03 *
4925.
4926. Columns 1 through 7
4927.
4928. 0.0010 -0.0128 0.0770 -0.2894 0.7596 -1.4772 2.2009
4929.
4930. Columns 8 through 14
4931.
4932. -2.5625 2.3560 -1.7161 0.9869 -0.4434 0.1525 -0.0388
4933.
4934. Columns 15 through 17
4935.
4936. 0.0069 -0.0008 0.0000
4937.
4938. >> y=filter(K,L,sintot)
4939.
4940. y=
4941.
4942. Columns 1 through 7
4943.
4944. 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
4945.
4946. Columns 8 through 14
4947.
4948. 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
4949.
4950. Columns 15 through 21
4951.
4952. 0.0001 0.0001 0.0002 0.0004 0.0008 0.0014 0.0024
4953.
4954. Columns 22 through 28
4955.
4956. 0.0038 0.0060 0.0091 0.0134 0.0193 0.0269 0.0366
4957.
4958. Columns 29 through 35
4959.
4960. 0.0485 0.0628 0.0795 0.0983 0.1189 0.1407 0.1631
4961.
4962. Columns 36 through 42
4963.
4964. 0.1852 0.2061 0.2250 0.2410 0.2536 0.2623 0.2671
4965.
4966. Columns 43 through 49
4967.
4968. 0.2684 0.2667 0.2630 0.2584 0.2542 0.2516 0.2516
4969.
4970. Columns 50 through 56
4971.
4972. 0.2549 0.2619 0.2724 0.2856 0.3005 0.3156 0.3292
4973.
4974. Columns 57 through 63
4975.
4976. 0.3395 0.3448 0.3438 0.3357 0.3201 0.2973 0.2680
4977.
4978. Columns 64 through 70
4979.
4980. 0.2338 0.1961 0.1569 0.1181 0.0814 0.0479 0.0186
4981.
4982. Columns 71 through 77
4983.
4984. -0.0062 -0.0269 -0.0439 -0.0585 -0.0718 -0.0851 -0.0994
4985.
4986. Columns 78 through 84
4987.
4988. -0.1157 -0.1345 -0.1557 -0.1790 -0.2038 -0.2292 -0.2540
4989.
4990. Columns 85 through 91
4991.
4992. -0.2772 -0.2979 -0.3152 -0.3287 -0.3382 -0.3438 -0.3458
4993.
4994. Columns 92 through 98
4995.
4996. -0.3446 -0.3409 -0.3349 -0.3273 -0.3183 -0.3081 -0.2968
4997.
4998. Columns 99 through 100
4999.
5000. -0.2842 -0.2703
5001.
5002. >> freqz(y)
5003. >> freqz(y)
5004. [K,L]=butter(32,WN)
5005. y=filter(K,L,sintot)
5006. freqz(y)
5007. [K,L]=butter(5,WN)
5008. y=filter(K,L,sintot)
5009. freqz(y)
5010. plot(y)
5011. [K,L]=butter(16,WN)
5012. y=filter(K,L,sintot)
5013. freqz(y)

Anda mungkin juga menyukai