Fourier coeffs of a function in Matlab

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
Alexandr
Messages
3
Reaction score
0
Please, people, need help!

I have a harmonic function which is a product of cosines (something with many cos(k*phi)) and it can be represented as a finite series with only cos terms... We know it...

Now. Every step we multiply this function by one more cos and want to find the Fourier coefs.

So, I don't understand two things...
1. There is no any method in Matlab to generate functions of variables as I understand... So, how can I provide this updating? I need that function of phi...
2. Is there any command for finding nth Fourier coefficient of function, not a vector?

Any useful tips?
 
Physics news on Phys.org