Can anyone tell me which filter i can use to reduce the magnitude/amplitude of a signal ? please help
13 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Star Strider
on 7 Sep 2016
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 Comments
More Answers (0)
See Also
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!