I want to remove the noise of this Signal

1 回表示 (過去 30 日間)
Meddour Aissam riad
Meddour Aissam riad 2020 年 4 月 24 日
編集済み: Star Strider 2020 年 4 月 24 日
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

採用された回答

Star Strider
Star Strider 2020 年 4 月 24 日
編集済み: Star Strider 2020 年 4 月 24 日
If you have R2017a or later, use the smoothdata function:
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 件)

カテゴリ

Help Center および File ExchangeSmoothing and Denoising についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by