,., solve please
1. In the lab we analyzed filtering 60 Hz power-line noise from ECG signal using a digital (signal processing) filter. Now let's try to an analog (circuit) filter approach to remove the 60 Hz line-noise. Following is an active twin-T notch filter with transfer function: Z(@) (1+m)((2joRC) +1) R H(@) = X(@) (2joRC) +4(1-m)joRC+1 X Z 2R 2R Here m is the ratio of the two feedback resistance which determines the gain and quality 2C MR R for the filter. The drop frequency of this twin-T notch filter is fdrop=1/4ARC. For designing a 60 Hz drop filter, let's use R=10 kQ and C=133 nF. (a) Form={0.8, 0.9} plot the magnitude and phase response of H( W ) with a range of f=w/2n=[0, 200 Hz]. (b) Consider the ECG signal used during the class (ecg_signal . mat) as the input (x(t)=ecg) of a 60 Hz twin-T notch filter with m=0 . 9. Using the functions fft( ) and ifft ( ), determine the X (w), Z (@), and z ( t ) [z (t ) is the output signal from the twin-T notch filter]. Plot x ( t ), X( f ), Z( f ), and z ( t ) in a 4x1 subplot for the range of -250 f 250 and O Sts 2.5. [Please pay attention to the proper use of fitshift( ) and ifftshift ( ) while solving this problem.] 2. Calculate the energy of time domain signal x ( t ) and z ( t ) for the range of 0 St$2.5. Also calculate the energy of these signals in frequency domain using Parseval's theorem. Plot Energy (X) and Energy ( Z ) as a function of frequency f in a 2x1 subplot (Energy vs frequency plot is know as energy spectrum of a signal).Write a general matlab program to calculate the THD value for a clipped sinewave signal Use for example (0.9 up clip /0.7 down clip) A Sim (wot) write a general matlab program to calculate the THD value for a clipped sinewave signal Use for example (o.9 up clip /0.7 down clip) signal and system3. Calculate the energy of the output signal m( t ) for the time range t=-100:0. 1: 100. Also evaluate the energy of the output signal in frequency domain using Parseval's theorem (use the frequency range W=31 . 4:0. 01:31.4).\fi am eonmes on how to calculate The average in maah Dude. Number of points = 1000 Problem. Write a MATLAB program to calculate the area under the curve given by y = ax + bx? for 0