How can i solve this problem
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I can't fill the answers Coefficients [c....] and %fill here for proper ... of C(k)
0 comentarios
Respuestas (1)
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
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
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.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!