Symbolically Calculating Fourier Transforms with int()
Show older comments
For the following function:
x_1 = heaviside(t + 0.5) - heaviside(t - 0.5);
I would like to symbolically compute the Fourier Transform using MATLAB's int() function.
Using
as my guide, my attempt was as follows:
FX_1 = int(x_1*exp(-1i*omega*t),t,-inf,inf);
The return was unusable. There are obviously other ways to go about getting the Fourier Transform of a function, but in this instance I am specifically looking to do so using the int() function.
Bonus question: how would you plot the magnitude line spectrum of the function? Would the following work?
omega = -100:0:100;
plot(abs(FX_1),omega)
Accepted Answer
More Answers (0)
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!