Below is a piece of a matlab assignment that I have been stu
Below is a piece of a matlab assignment that I have been stuck on. We\'re new to matlab, so I\'m just kind of lost. Also note that the original signal with the noise is called X. R and C are constants. I don\'t need this to actually be done in matlab, just the code.
Create a first order transfer function that has a breakpoint frequency well below = 2*pi*60 so that the filter will pass the desired pacemaker signal and attenuate the deterministic noise
H(s) = 1/(1+sRC)
Use this to create an impulse response and use the convolution function to simulate processing the signal through the filter.
Thanks in advance.
Solution
C=0.1*10^-6 ; %defince capacitance value
f=60; %define cut of frequency
R=1/(2*pi*f*C); %To find resitance value for giver cut off freq
s=tf(\'s\');% defien transferfunction in s domain
H=1/(1+(s*R*C));%define Lowpass filter transfer function
bode(H);%To Draw the frequency response curve in DB
grid on
