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

13 views (last 30 days)
i have a plot of magnitude of signal.. i want the output of a filter to be the same signal but with reduced amplitude..

Accepted Answer

Star Strider
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

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!