Filter löschen
Filter löschen

I have a signal which is quite noisy, I want to remove the noise from the signal, I did the smoothing but the results are still not good. The file is attached below

3 Ansichten (letzte 30 Tage)
I have a signal which is quite noisy, I want to remove the noise from the signal, I did the smoothing but the results are still not good. What is the best way to remove the noise. The file is attached below
The CODE is:
clear all
clc
%WITH HOLE UP:
anum1= xlsread('DSO0001.csv','A7138:A12438');
anum2=xlsread('DSO0001.csv','C7138:C12438');
anum3=smoothdata(anum2);
plot(anum1,anum3,'b')
title('Generator On Hole (Without Smoothing)')
set(gca,'Fontsize',20)
xlabel('Time (milli Second)')
ylabel('volatage (mV)')

Antworten (1)

Chunru
Chunru am 21 Mär. 2022
data= readmatrix("https://www.mathworks.com/matlabcentral/answers/uploaded_files/934649/DSO0001.CSV");
anum1 = data(:,1);
anum2 = data(:,3);
% Adjust the smooth methods and window size
anum3=smoothdata(anum2, 1, 'sgolay', 100);
subplot(211); plot(anum1,anum3,'b')
title('Generator On Hole (With Smoothing)')
xlim([0.7 1.2]*1e4);
subplot(212); plot(anum1,anum2,'g')
xlim([0.7 1.2]*1e4);
title('Generator On Hole (Without Smoothing)')
xlabel('Time (milli Second)')
ylabel('volatage (mV)')

Community Treasure Hunt

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

Start Hunting!

Translated by