Convert a signal in a particular frequency range
3 views (last 30 days)
Show older comments
Elysi Cochin
on 22 Jul 2017
Answered: Star Strider
on 22 Jul 2017
The attached file is an EMG signal. How to know the frequency range of that signal? Its sampling rate is 2000 Hz. I wanted to convert the signal in the frequency range 20 - 450 Hz. How to do it?
0 Comments
Accepted Answer
Star Strider
on 22 Jul 2017
See my Answer to your other Question for the details.
This filter will be:
Fs = 2000; % Sampling Frequency (Hz)
Fn = Fs/2; % Nyquist Frequency (Hz)
Wp = [20 450]/Fn; % Passband Frequencies (Normalised)
Ws = [19 455]/Fn; % Stopband Frequencies (Normalised)
Rp = 10; % Passband Ripple (dB)
Rs = 50; % Stopband Ripple (dB)
[n,Ws] = cheb2ord(Wp,Ws,Rp,Rs); % Filter Order
[z,p,k] = cheby2(n,Rs,Ws); % Filter Design
[sosbp,gbp] = zp2sos(z,p,k); % Convert To Second-Order-Section For Stability
NOTE — Make appropriate changes to my other code for your EMG signal.
0 Comments
More Answers (0)
See Also
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!