Fourier Series Expansion of a Periodic Square Wave

조회 수: 3 (최근 30일)
Tolgay Polat
Tolgay Polat 2021년 12월 25일
댓글: John D'Errico 2021년 12월 25일
I have tried to code and plot the first 50 terms of the given graph; but i constantly failed.
x(t)= 4/pi ( sin(t) + sin(3t)/3 + sin(5t)/5+...+ sin(49t)/49)
  댓글 수: 1
John D'Errico
John D'Errico 2021년 12월 25일
Please remember that we are not here to do student homework assignments.

댓글을 달려면 로그인하십시오.

답변 (1개)

Torsten
Torsten 2021년 12월 25일
편집: Torsten 2021년 12월 25일
n = 49;
fun = @(t) 4/pi*sum(sin((1:2:n)*t)./(1:2:n));
T = linspace(0,2*pi,100);
X = arrayfun(fun,T);
plot(T,X)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by