How can i solve this problem

1 visualización (últimos 30 días)
민호 김
민호 김 el 28 de Oct. de 2021
Comentada: Walter Roberson el 28 de Oct. de 2021
I can't fill the answers Coefficients [c....] and %fill here for proper ... of C(k)

Respuestas (1)

David Hill
David Hill el 28 de Oct. de 2021
Show me what you have tried for the C(k) equation above.
function C= FourierSeries(x,MaxK)
N=length(x);
n=0:N-1;
for k=1:2*MaxK+1
C(k)=%your equation look at sum() exp() .*
end
  9 comentarios
David Hill
David Hill el 28 de Oct. de 2021
What should the coefficients be? The coefficients are complex, do you know if you are suppose to report only the magnitude?
Walter Roberson
Walter Roberson el 28 de Oct. de 2021
In MATLAB, [] is only used for building lists (and arrays) . [] is really the horzcat() or vertcat() function. The only place that [] is ever used for indexing in MATLAB is inside the Symbolic Engine, in the MuPAD programming language.

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by