Using Fourier analysis to find frequency-amplitude spectrum?

AI Thread Summary
The discussion focuses on using Fourier analysis to create a frequency-amplitude spectrum from a voltage supply signal. Participants explore the mathematical foundations of Fourier transformation, emphasizing the importance of understanding the underlying math rather than solely relying on programming tools like MATLAB. Key formulas for calculating Fourier coefficients are shared, including the trigonometric and complex Fourier series equations. The periodicity of the signal, denoted as 'a', is clarified as a crucial component in the calculations. Ultimately, the user successfully plots the spectrum using the complex Fourier series approach, indicating a practical application of the discussed concepts.
jamdr
Messages
13
Reaction score
0
The signal is from a voltage supply. I see lots of pages on the internet about this, such as this one, which shows what the magnitude spectrum looks like for a square wave with an arbitrary number of co-efficients. But how would I actually create that graph myself?
 
Physics news on Phys.org
jamdr said:
The signal is from a voltage supply. I see lots of pages on the internet about this, such as this one, which shows what the magnitude spectrum looks like for a square wave with an arbitrary number of co-efficients. But how would I actually create that graph myself?

Is this a question of COMPUTER PROGRAMMING,MATHS or PHYSICS??

Think deep...To me it looks like pogramming...What programming languages do u know?

Daniel.
 
It's a math question I suppose. I need to know the steps to find a Fourier transformation. I know that MATLAB and other computer programs can solve this type of problem, but I want to understand the math behind it.
 
the Fourier coefficitents are calculated using the formulas

F(x) = \sum^{\infty} _{0} A_{n}\cos\left(\frac{n\pi x}{a} \right ) + B_{n}\sin\left (\frac{n\pi x}{a}\right )

where

A_{n} =\frac{1}{a} \int _{-a} ^{a} F(x)\cos\left (\frac{n\pi x}{a}\right ) dx

and

B_{n} =\frac{1}{a} \int _{-a} ^{a} F(x)\sin\left (\frac{n\pi x}{a} \right ) dx

from here plug in the periodic function and do the integrals...
 
Dr Transport said:
the Fourier coefficitents are calculated using the formulas

F(x) = \sum^{\infty} _{0} A_{n}\cos\left(\frac{n\pi x}{a} \right ) + B_{n}\sin\left (\frac{n\pi x}{a}\right )

where

A_{n} =\frac{1}{a} \int _{-a} ^{a} F(x)\cos\left (\frac{n\pi x}{a}\right ) dx

and

B_{n} =\frac{1}{a} \int _{-a} ^{a} F(x)\sin\left (\frac{n\pi x}{a} \right ) dx

from here plug in the periodic function and do the integrals...

Wait, what is a?
 
Thanks for the help Dr. Transport. But in the end I ended up using this formula:

f_n=\frac{1}{T}\int_0^T v(t) e^{-j n \omega t} dt

where n is some arbitrary number of coefficients. Also, n is the index of f (an array). Then I plotted \overrightarrow{\left|f\right|}_n versus \frac{n}{T}

I don't fully understand this, but it seemed to work.
 
Last edited:
the last equation stated is complex Fourier series while the earlier stated equation is trigonometry Fourier series. I'm done.
 
Back
Top