Need help with writing the MATLAB code for this. Not very familiar with MATLAB :
ID: 2988762 • Letter: N
Question
Need help with writing the MATLAB code for this. Not very familiar with MATLAB :[
Task 2 Finding Fourier transform In this task you use the Matlab function 'FOURIER" to find the Fourier transform F(omega ) of several functions. Verify that Table 18.2 (Fourier transform pairs) can be found using the function FOURIER. Let tau=5; a=3, n=2 and -=7. In your report, present your input commands along with the respective results. Determine the Fourier transform for the following functions using the function 'FOURIER'. Use other Matlab functions and/or hand manipulation if necessary to obtain compact results as much as possible.Explanation / Answer
MATLAB code :
syms t
f_1 = 4*(heaviside(t) - heaviside(t-1)) + 8*(heaviside(t-1) - heaviside(t-2));
f_2 = 12*(heaviside(t) - heaviside(t-1)) + (-5*t + 10)*(heaviside(t-1) - heaviside(t-2));
f_3 = exp(-abs(t))*(heaviside(t+2) - heaviside(t-2));
% Finding Fourier Transforms
fourier_1 = fourier(f_1)
fourier_2 = fourier(f_2)
fourier_3 = fourier(f_3)
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.