Convert a signal in a particular frequency range
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Elysi Cochin
le 22 Juil 2017
Réponse apportée : Star Strider
le 22 Juil 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 commentaires
Réponse acceptée
Star Strider
le 22 Juil 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Spectral Measurements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!