Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
Muhammad Rohim
Muhammad Rohim el 22 de Abr. de 2020
Respondida: David Hill el 22 de Abr. de 2020
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

Respuestas (1)

David Hill
David Hill el 22 de Abr. de 2020
n=1:1000;
term=sin(2*n)./(n.^2);

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by