Solving Fourier Cosine Series Homework w/ Matlab & Excel

AI Thread Summary
The discussion focuses on solving a Fourier cosine series homework problem using Matlab and Excel. Participants emphasize that FFT analysis is unnecessary for this task, suggesting a straightforward approach of plugging values into the provided equation for f(t). The coefficients a0 and a1 are clarified as the constants multiplying the cosine terms in the series expansion. Users are encouraged to refer to the problem statement and utilize a spreadsheet for calculations and plotting. The conversation highlights the importance of understanding how the coefficients relate to the function f(t) for successful completion of the homework.
Carter
Messages
11
Reaction score
0

Homework Statement


upload_2018-4-3_23-11-46.png


Homework Equations


All I know is the a's have something to do with the integrals.
upload_2018-4-3_23-13-22.png

The Attempt at a Solution


I used FFT analysis in Matlab but I do not know what I am looking for. How do the a0s relate to the f(t) in the question and how would I even do run that equation in an excell program. I just need to know where to start.
 

Attachments

  • upload_2018-4-3_23-11-46.png
    upload_2018-4-3_23-11-46.png
    10.8 KB · Views: 1,100
  • upload_2018-4-3_23-13-22.png
    upload_2018-4-3_23-13-22.png
    20.8 KB · Views: 1,035
Physics news on Phys.org
I don't think you need FFT analysis for this. Read the problem statement and do what it says using a spreadsheet. It's a simple plug and chug and plot question.
 
To find the a0, a1, etc. Compare the format of the given summation to the expansion of f(t) in equation (5.2)
 
scottdave said:
To find the a0, a1, etc. Compare the format of the given summation to the expansion of f(t) in equation (5.2)
so would a0 be .2 and a1=(2/pi)(-1)^1/1
 
kuruman said:
I don't think you need FFT analysis for this. Read the problem statement and do what it says using a spreadsheet. It's a simple plug and chug and plot question.
what am I pluging into, how do the a's relate to the f(t).
 
Carter said:
what am I pluging into, how do the a's relate to the f(t).
You are plugging into the equation ##f(t)=0.2+\frac{2}{\pi} \sum_{n=1}^\infty~...~etc## that is given to you. The posts by @scottdave and @Carter explain what the ##a_n## are, they are whatever multiplies each ##\cos(4n \pi t)## term in the summation.
 
Carter said:
so would a0 be .2 and a1=(2/pi)(-1)^1/1
If you multiply that by sine( 0.2(1)pi) then that will be a1
 
Last edited:

Similar threads

Replies
1
Views
2K
Replies
3
Views
6K
Replies
26
Views
3K
Replies
1
Views
2K
Back
Top