Solve Ex.4-2 Can you please show me the output of MAtLab on a nice way Thank you
ID: 2266797 • Letter: S
Question
Solve Ex.4-2 Can you please show me the output of MAtLab on a nice way Thank you very much Can you please show me the output of MAtLab on a nice way Thank you very much Computer Exercises 4-1. Obtain the symbolic Fourier transforms of the following: (a) x,(t) = exp(-r) (b) x2) texp(-) (c) x,(t) = (e-ne-z)u(t) Check your results with Table 4-2 and by performing inverse symbolic Fourier transfoms show that the original signal results in each case 4-2. (a) Compute and plot the ampliude and phase spectra of the signals given in Computer Bie cise 4-1 (b) Compute and plot the energy spectra of the signals given in Computer Exercise 4-1.Explanation / Answer
First obtain the fourier transforms of all signals.
>> syms t,w
>> x1=exp(-t^2);
>> x2=t*x1;
>> x3=exp(-3*t)+exp(-2*t);
>> f1=fourier(x1)
>> f2=fourier(x2)
>> f3=fourier(x3)
%now plot the phase and magnitude spectrum.%
>>plot(w,abs(f1)) % gives the magnitude spectrum%
>>plot(w,angle(f1)) %gives the phase spectrum%
%Obtain the other plots using the same syntax%
>>plot(w,abs(f2))
>>plot(w,angle(f2))
%Obtain the third plots using the same syntax%
>>plot(w,abs(f3))
>>plot(w,angle(f3))
To plot simultaneously all the three plots use either "figure" or subplot commands.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.