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..
0 个评论
采纳的回答
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!