Filtering data points and smoothing

조회 수: 3(최근 30일)
friet
friet 2017년 6월 16일
댓글: friet 2017년 6월 16일
Hello I have a filter designed to filter out some noisy datapoints. My filter works well from 100-10000 in x -axis. However, at the beginning of the plot i.e., 1-100, it didn't filter, the filtered data point deviates from the original data points.
Any suggestion is appreciated Best regards, Friet
clear all
clc
close all
M=dlmread('rrawData.txt');
x=M(1:14250,1);
y=(M(1:14250,2));
%Filter design
wn=0.01;
[B,A]=butter(2,wn,'low');
yf=filter(B,A,y);
figure(1)
loglog(x,y,x,yf)
grid on

답변(1개)

Image Analyst
Image Analyst 2017년 6월 16일
Then don't use that data. Just replace it with the original data. Or have a smaller filter window for x < 10.
  댓글 수: 3
friet
friet 2017년 6월 16일
Thanks I think i figure it out

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by