How can i use Moving Average Filter to change the sampling rate of a signal!?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Omar Aljanaideh
le 29 Nov 2017
Commenté : Christoph F.
le 30 Nov 2017
How to design a moving average filter to change the sampling rate of a signal?! An example will be appreciated.
0 commentaires
Réponse acceptée
Christoph F.
le 29 Nov 2017
You filter the signal and then you reduce the sampling rate.
In the most simple case:
X=filter([0.5 0.5], 1, X); % Two-element moving average filter
X=X(1:2:end); % Halve the sampling rate of the signal X
Of course, depending on the characteristics of the signal, you may want a longer moving average for a better suppression of higher frequencies.
Plus de réponses (1)
Omar Aljanaideh
le 29 Nov 2017
1 commentaire
Christoph F.
le 30 Nov 2017
The same operation can probably be done in Simulink using the "Discrete FIR filter" block and a "Rate transition" block. I am not as familiar with Simulink as I am with MatLAB.
Voir également
Catégories
En savoir plus sur Statistics and Linear Algebra 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!