Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
fs=4000; %half the sampling freq qhich is used for normalising
ws=[3140 3710]/fs %mychosen values
[n16 wn16]=buttord(wp,ws,0.1,40);%my chosen rp and rs
i know its coz wp and ws are not between 0 and 1 but how...
i have had a look at them but im not sure how to determine the rp and rs given that i only have the lower and higher cutoff freq. such as,Filter No. Lower Cut-Off
Frequency (Hz) Centre
Frequency (Hz) Upper Cut-Off
Frequency (Hz) Bandwidth (Hz)
1 100 150 200 100
2 200 250 300 100
3 300 350 400...
I am trying to design a bandpass filter in matlab,
i have the lower cutoff freq as 100hz and the upper cutoff freq as 200h. I do not know how to calculate the passband and stopband attenuation.
I have chosen use to buttord/butterworth but i dont know how to determine rp and rs.