Fourier Sine code simplified to solve this problem and plot

回答(1 个)

You can do this symbolically just as the problem is written:
syms t omega f(t)
f(t) = sin(t);
Fourier = int(f*exp(1j*omega*t), t, 0, pi)
Fourier = rewrite(Fourier, 'sincos')
I leave the rest to you.
EDIT —
NOTE — We have no idea what a is, since you chose not to share that information.

此问题已关闭。

关闭:

2021-8-20

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by