Fourier Sine code simplified to solve this problem and plot

Answers (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.

This question is closed.

Asked:

on 2 Feb 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!