Question: All code must be in Matlab. All code must be attached. Absolutely no use of ChatGPT or other AI tools allowed. The project includes coding

All code must be in Matlab. All code must be attached. Absolutely no use of ChatGPT or other AI tools allowed.
The project includes coding in the following three problems in Matlab. All problems are Matlab coding problems. Each problem carries equal marks.
Use of inbuilt functions or taking shortcut approaches to coding can lead to a lower grade for the project. You must follow the coding style and approaches discussed in the class.
The difference equation of a linear time-invariant (LTI) system is given by
y(n)=x(n)+0.5x(n-1)-0.25x(n-2)+0.125x(n-3)+0.33y(n-1)
The system is excited by the unit impulse function x(n)=2(n-5). Find the corresponding output y(n)=h(n) for 128 time samples. Plot h(n). Use the calculated h(n) to find the output y2(n)=h2(n) corresponding to the new input x2(n)=2(n-5)+2(n-6) without using the above difference equation (hint: use the previously calculated response h(n) to directly find h2(n) using properties of LTI systems. Plot h2(n).
2. The difference equation of a LTI system is
y(n)=x(n)+x(n-1)
If the corresponding unit impulse response is h(n) find using Matlab the impulse response h10(n) of 10 cascaded units of the above LTI system. Cascading refers to the connection of the output of the k-th LTI system to the input of the k+1-th LTI system. Also find the FFT of both h(n) and h10(n) in both magnitude and phase. You may use the inbuilt fft() function in Matlab for this part of the project.
3. Find using Matlab the 1616 square discrete Fourier transform (DFT) matrix for 16-point input signal vectors. Display the real and imaginary parts of DFT matrix separately. An input signal is defined as
x(n)=cos(1n)+cos(2n)
where 1=2*316 and 2=2*516. Find the DFT of x(n) using your DFT matrix by writing a matrix-vector product. Plot it. Then find the FFT of x(n) and plot it. Use magntiude plots only.
All code must be in Matlab. All code must be

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!