How can i use Moving Average Filter to change the sampling rate of a signal!?
조회 수: 3 (최근 30일)
이전 댓글 표시
How to design a moving average filter to change the sampling rate of a signal?! An example will be appreciated.
댓글 수: 0
채택된 답변
Christoph F.
2017년 11월 29일
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.
추가 답변 (1개)
Omar Aljanaideh
2017년 11월 29일
댓글 수: 1
Christoph F.
2017년 11월 30일
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Linear Algebra에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!