Question: How do I plot the figure of Fourier series under the different step?

For a eqation such as y(t)=2*sin(3*t)

I want to solve its fourier series under the different step,

and plot corresponding figure like the picture below

How should i do?

help me please.

tu

Please Wait...