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 Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by