whati's solution for signal filtering ?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi :) I'd like to know how to filter this signal in figure, can you give the solution ?
Thank's
댓글 수: 2
Jan
2023년 1월 30일
It depends on what you consider as noise and what as signal. Maybe you want to get rid of the low frequencies, or the high ones. Maybe you want a band only, or exclude it. The readers cannot guess this detail.
Mathieu NOE
2023년 1월 30일
and also it's quite usefull to share the data and some code if you have started one
답변 (1개)
Sarvesh Kale
2023년 1월 31일
I have made the assumption that the data around time 100 and 350 is error data that you would like to get rid of, I suggest the following steps
- subtract 400.2 from samples of data as noise data is having a mean of approximately 400.2, this will make noise data centered around 0
- perform FIR filtering such that it will smoothen the data, FIR filter to be used can be 0.2*[1 1 1 1 1], FIR filtering can be done using simple convolution operation
- Add the bias component back to the signal samples
Following is the code that achieves the above.
% assume data is X
X = X - 400.2 ;
f = 0.2*[ 1 1 1 1 1] ;
filtered = conv(X,f) ;
filtered = filtered + 400.2 ;
plot(filtered) ;
OR
Alternately, there is also an option of Clean Data under Home tab of MATLAB.
Import your data and select the smooth function from the App.
댓글 수: 3
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!