I want to remove the noise of this Signal
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Meddour Aissam riad
am 24 Apr. 2020
Bearbeitet: Star Strider
am 24 Apr. 2020
Hi there,
I have the following signal, i need to calculate it derivative but it is full of noise.
what should i use to get rid of the noise
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/287208/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Star Strider
am 24 Apr. 2020
Bearbeitet: Star Strider
am 24 Apr. 2020
D = load('matlab.mat');
Temperature = D.Temperature;
ys = smoothdata( Temperature, 'movmean', 100); % R2017a
figure
plot(Temperature, '-b')
hold on
plot(ys, '-r')
hold off
grid
That appears to work well.
EDIT — (24 Apr 2020 at 16:55)
If you have an earlier version/release, this works about as well:
N = 15;
ys = filter(ones(1,N), N, Temperature - Temperature(1), zeros(1,N-1)) + Temperature(1);
Use those two assignments instead of smoothdata.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!