Can anyone tell me which filter i can use to reduce the magnitude/amplitude of a signal ? please help

9 次查看(过去 30 天)
i have a plot of magnitude of signal.. i want the output of a filter to be the same signal but with reduced amplitude..

采纳的回答

Star Strider
Star Strider 2016-9-7
I would just multiply the entire signal by some constant ‘K’ less than 1:
out = median(signal) + (signal-median(signal))*K;
Example:
t = linspace(0, 2*pi);
signal = pi + sin(t) + 0.2*randn(size(t));
K = 0.7;
out = median(signal) + (signal-median(signal))*K;
figure(1)
plot(t, signal, t, out)
grid
  6 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Signal Processing Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by