필터 지우기
필터 지우기

Fourier series for a sawtooth wave with period 2L (= 4)

조회 수: 2 (최근 30일)
SHRIDHARAN PARVATHI STALIN
SHRIDHARAN PARVATHI STALIN 2021년 11월 20일
답변: Pavan Guntha 2021년 11월 23일
Fourier series for a sawtooth wave with period 2L
where to insert sawtooth code in this fourier series?
T = input ("Enter the period:");
n = input ( "Enter number of terms of fourier series to calculate:");
t = 0:2*T:10;
y=0;
for i = 1:n
y = (y+(-(2/pi))*(sin(i*pi*t/2))/i);
end
plot(t,y)

채택된 답변

Pavan Guntha
Pavan Guntha 2021년 11월 23일
Hi,
You could have a look at the following page to understand derving the fourier series from a Sawtooth waveform:
The equation can be implemented in MATLAB. The following MATLAB documentation links to Natural Logarithm, Exponential functions would be helpful to implement the equation.
Hope it helps!

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by