How can i solve this problem
1 view (last 30 days)
Show older comments
I can't fill the answers Coefficients [c....] and %fill here for proper ... of C(k)
0 Comments
Answers (1)
David Hill
on 28 Oct 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 Comments
David Hill
on 28 Oct 2021
What should the coefficients be? The coefficients are complex, do you know if you are suppose to report only the magnitude?
Walter Roberson
on 28 Oct 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.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!