FFT filtering noise?

Why I did I get a final signal like the first signal after denoising??
filename = 'koo.CSV';
M = csvread(filename);
x=M(:,3);
Y=M(:,4);
fs=250;
f=10;
subplot(3,2,1)
plot (x,Y,'b','linewidth',2)
title('Original Arc Signal')
xlabel('TIME,t(s)')
ylabel('VOLTAGE,V');
yrand = (rand(size(Y))-0.5) * 10;
z=Y + yrand;
subplot(3,2,2)
plot (x, z,'b', 'linewidth', 2)
title('Noisy Arc Signal')
xlabel('TIME,t(s)')
ylabel('VOLTAGE,V');
L=length(z);
NEFT=2^nextpow2(L);
z_fft=abs(fft(z,NEFT));
freq=fs/2*linspace(0,1.5,NEFT/2+1);
subplot(3,2,4);
plot(freq,z_fft(1:length(freq)));
o=5;
wn=[1 10]*2/fs;
[b,a]=butter(o,wn,'bandpass');
figure;freqz(b,a,1000,fs);
figure(1)
[h,w]=freqz(b,a,1000,fs);
subplot(3,2,3);
plot(w,20*log10(abs(h)));
z_filt=filter(b,a,z);
subplot(3,2,5);
ylim([0 20])
plot(x,z_filt,'b','linewidth', 2);

4 件のコメント

Image Analyst
Image Analyst 2019 年 3 月 24 日
You forgot to attach koo.csv.
What exact line of code is the filter actually being applied to the noisy version of the original signal?
hafis radzi
hafis radzi 2019 年 3 月 24 日
hello sir,i already upload the file and add missing coding.i hope u can help me
Image Analyst
Image Analyst 2019 年 3 月 24 日
It looks roughly like it if you invert the signal - I think it's just upside down.
hafis radzi
hafis radzi 2019 年 3 月 24 日
i already tranpose the polatry of data.figure below,but not same with the original signal.i just want use FFT tecnique to denoise the origal noise signal.Capture.PNG

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeFourier Analysis and Filtering についてさらに検索

製品

リリース

R2016b

質問済み:

2019 年 3 月 24 日

コメント済み:

2019 年 3 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by