how do you detemine the gain factor using matlab. In this code they multipled a gain factor by y(n) the signal
4 views (last 30 days)
Show older comments
subplot(3,1,3);
plot(m,y);
title('Filtered Signal');
xlabel('n');
ylabel('x');
n = n +1;
end
figure(n);
subplot(3,1,1);
plot(m,C);
xlabel('n');
ylabel('x');
title('ecg3.wav');
subplot(3,1,2);
plot(m,X);
xlabel('n');
ylabel('x');
title('ecg3.plushum');
b=[1 -.6 1];
a=[1 0 0];
y1=(1.432174).*filter(b,a,X);
subplot(3,1,3);
plot(m,y1);
xlabel('n');
ylabel('x');
title('Filtered Signal with Gain');
0 Comments
Answers (1)
Image Analyst
on 21 Nov 2015
There is no way for us to determine why the authors wanted a gain of 1.432174 because we don't know what they want to do with it afterwards. You may not need to multiply by anything so don't worry about it. If you need a gain, then you'll probably know you do and you will know the amplitude of the gain you need, just like they did.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!