How can i solve this problem

3 views (last 30 days)
민호 김
민호 김 on 28 Oct 2021
Commented: Walter Roberson on 28 Oct 2021
I can't fill the answers Coefficients [c....] and %fill here for proper ... of C(k)

Answers (1)

David Hill
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
Walter Roberson
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.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!