필터 지우기
필터 지우기

how to determine the coefficient of Fourier series in matlab code?

조회 수: 3 (최근 30일)
Muhammad Rohim
Muhammad Rohim 2020년 4월 22일
답변: David Hill 2020년 4월 22일
I have a trigonometric series as above, but I can't figure out how to determine the value of the series coefficients in the matlab code. please help me, thanks.
this is the equation above in the matlab code that I used:
for n = 1:100
term = sin(2*n)/(n^2);
disp([term]')
end

답변 (1개)

David Hill
David Hill 2020년 4월 22일
n=1:1000;
term=sin(2*n)./(n.^2);

카테고리

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

제품


릴리스

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by