如何删除指数信号的纹波

问题描述 投票:-3回答:1

我有以下数据,它们对应于“嘈杂”的指数形状信号。 Graph是否有任何简单/直观的方法可以消除噪声/纹波以获得干净的信号(如滤波)?

任何帮助表示赞赏!

matlab signal-processing noise ripple
1个回答
1
投票
Use median or averaging filters. For example this is from MATLAB's examples:
https://www.mathworks.com/help/signal/ref/medfilt1.html 

% Create the signal 
fs = 100;
t = 0:1/fs:1;
x = sin(2*pi*t*3)+0.25*sin(2*pi*t*40);

% Filter 
y = medfilt1(x,10);

%Plot the result 
plot(t,x,t,y);
legend('Original','Filtered');
legend('boxoff');

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.