필터 지우기
필터 지우기

How to choose the appropriate low pass filter?

조회 수: 8 (최근 30일)
NIHARIKA
NIHARIKA 2014년 7월 17일
편집: NIHARIKA 2014년 7월 20일
I am working on a project in which I have obtained the following readings from the accelerometer in the form of three columns (x,y,z):
0 0 0
-0.2 1.3 -0.3
-0.3 2.7 -0.5
-0.5 4 -0.8
-0.4 4.1 -0.8
-0.4 4.1 -0.8
-0.4 4.1 -0.8
-0.4 4 -0.8
-0.4 4 -0.8
-0.5 4.1 -0.7
-0.5 4.1 -0.7
-0.4 4.1 -1
-0.8 4.4 -1.1
On these readings I did normalization by using x1=x/sqrt(g*height of person).
Therefore a new matrix was now obtained as (x1,y1,z1). Now I have to pass it through the low pass filter to remove the noise. But I am not able to decide which filter to use and how to select the parameters of the filter (i.e order, fs,fc). I am using fdatool for the filter design. Can anyone help me out?

채택된 답변

Daniel kiracofe
Daniel kiracofe 2014년 7월 18일
if you are new to filtering, and just want a simple low pass filter to remove noise, then start with a butterworth filter. It may not be the best, but it is easy to use. 4th order a is pretty good start.
Cutoff frequency depends on what you care about. i.e. what kind of noise you are trying to remove, how far away it is from the signal, what the signal looks like, etc. I'd suggest you just pick something, run it, and then plot the output versus your input data and see if it looks like what you want. If not, then try a different cutoff frequency.

추가 답변 (1개)

Star Strider
Star Strider 2014년 7월 18일
I did my best about a week ago in my answer to What is the MATLAB code for applying a low pass filter on the readings of accelerometer and gyroscope in a sensor tag?, but you didn’t reply to my comment.
I need your help in deciding what part of your signal you want to work with and what part is noise, and what your sampling frequency is. I don’t know enough about your experimental conditions to make those decisions myself.
  댓글 수: 1
NIHARIKA
NIHARIKA 2014년 7월 20일
편집: NIHARIKA 2014년 7월 20일
I am really very sorry, by mistake the button got clicked and the above ans was accepted. I still want your help. I have not got the solution to my problem. I just wanted to tell that the file 'accelerometer readings.csv' has the seconds written in it. It shows on the toolbaar in front of f(x) when we click on any of the time. I am sorry once again. I am not able to see any of your comments. How can i bring them back?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by