Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please solve this problem in MATLab. SHOW ALL WORK! Thank you. Course: Linear Sy

ID: 3349228 • Letter: P

Question

Please solve this problem in MATLab. SHOW ALL WORK! Thank you.

Course: Linear Systems

Create a Matlab function that calculates and outputs the Fourier Series coefficients of a periodic pulse train with amplitude A, period To, pulse width 2T1 and time shift to. Also allow the user to determine the number of coefficients calculated. The function should also plot the Fourier Series coefficients as well as the Fourier Series representation of the signal using the Fourier Series synthesis equation. Be sure to properly label all plots.

Explanation / Answer

clear , close all; Fs=60; t=0:1/Fs:20-1/Fs; y=square(t,50); y(y>0)=2; y(y