how do I implement Fourier series.

I now have the a0,an and bn. just wondering that how do I generate the "sum of square wave" and draw it out?
syms n t
w0=pi;
T0=2;
n=1:10;
a0=(1/T0)*int(1,t,0,1)
an=(2/T0)*int(1*cos(n*w0*t),t,0,1)
bn=(2/T0)*int(1*sin(n*w0*t),t,0,1)

1 件のコメント

Walter Roberson
Walter Roberson 2018 年 2 月 7 日
There are a whole bunch of postings from people implementing fourier; you should search for them and get back to us with questions that are more specific.

サインインしてコメントする。

 採用された回答

Abhishek Ballaney
Abhishek Ballaney 2018 年 2 月 7 日

0 投票

https://in.mathworks.com/help/curvefit/fourier.html

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by