- #1
jshubham
- 1
- 0
1. How do we find the normalized value of the pass-band and stop-band frequencies to be used in a butterworth filter?I am using the following code in MATLAB to design a butterworth filter. Can someone please tell me what is the pass-band/stop-band frequency of the filter in this code? 4000 is the number of samples in the signal.
wp=180/4000; %wp=pass-band freq
ws=360/4000; %ws-stop-band freq
rp=1; rs=60; %rp, rs=ripple factors
[n,wc]=buttord(wp,ws,rp,rs); %finding order n and cutoff frequency wc
[a,b]=butter(n,wc); %low pass butterworth filter
wp=180/4000; %wp=pass-band freq
ws=360/4000; %ws-stop-band freq
rp=1; rs=60; %rp, rs=ripple factors
[n,wc]=buttord(wp,ws,rp,rs); %finding order n and cutoff frequency wc
[a,b]=butter(n,wc); %low pass butterworth filter