(Solved): Fig. 1 By applying the KVL rule, we can obtain the circuit's first order differential equation ...
Fig. 1 By applying the KVL rule, we can obtain the circuit's first order differential equation as: RC∂t∂y(t)+y(t)=x(t) Then, by replacing the input signal by the impulse signal δ(t) and solving for the equation, we can obtain the circuit's impulse response as: h(t)=RC1e−t/RCu(t) By applying Fourier transform (FT), we can obtain the magnitude spectrum of this RC circuit as ∣H(ω)∣=1+R2C2ω21 which is (as shown in Fig.2) acts as a low-pass-filter (LPF) with cut-off frequency ωc=RC1rad/sec. Also consider the triangular periodic input signal x(t) as shown in Fig.3. Let A=3 ,τ=2msec and T=6msecR=4KΩ&C=2mF
The aim of this part is to use a numerical analysis tool (MATLAB/Octave) to help students to obtain the frequency harmonics of a triangular periodic signal by applying Fourier series (FS), and to design a low-pass-filter to remove the high frequency components from the signal. For this purpose, consider the triangular periodic signal x(t) shown in Fig. 3 . 1- Determine the fundamental frequency ωo of the periodic signal x(t), and write a MATALB code to generate and plot it in the time domain for t∈[−2T,2T]. 2- Write a MATLAB code to compute its Fourier series coefficients ak and to plot its magnitude spectrum ∣ak∣ versus k∈[−100,100]. 3- Design the RC circuit shown in Fig. 1 (i.e., find the values of R and C)such that the cutoff frequency value ωc=4ωo; specifically: - Determine the required values of R and C. - Write a MATLAB code to plot the magnitude spectrum of the filter ∣H(ω)∣. - Write a MATLAB code to plot the filtered output signal in the frequency domain. - Write a MATLAB code to compute and plot the filtered output signal in the time domain. - Compare it with the original input signal x(t) and discuss the differences with reasonable justifications.