Can anyone help me with fourier series of a signal?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ajay Goyal
il 11 Ago 2016
Commentato: Image Analyst
il 12 Ago 2016
I got a signal as attached. My doubt is can I break the signal in a triangle and a straight line, then calculating fourier series for each. Will this break may affect my answer (magnitude * frequency)
3 Commenti
Image Analyst
il 12 Ago 2016
I meant post it here with the green and brown frame icon. Here, I will do it for you:
Risposta accettata
Star Strider
il 11 Ago 2016
If you’re doing a numeric fft, do the Fourier Transform of the entire signal.
To do it symbolically, separate it into two segments for each part of the triangle, and add:
syms w t f1(t) f2(t)
f1(t) = 40*t;
f2(t) = 40-40*t;
F(w) = int(f1(t)*exp(1i*w*t), t, 0, 0.5) + int(f2(t)*exp(1i*w*t), t, 0.5, 1);
F(w) = simplify(F(w), 'steps',20)
F(w) =
-(40*(exp((w*1i)/2) - 1)^2)/w^2
It is zero elsewhere, so you can ignore that section.
2 Commenti
Star Strider
il 12 Ago 2016
My pleasure.
Your code is very difficult to follow. Instead of using separate sine and cosine terms, I would use the complex exponential to calculate the Fourier transform.
For a single pulse, you can ignore the zero segment. If your pulse repeats at regular intervals, you must include at least two pulses, with the pulses defined just as the first one was, as segments of straight lines (in this example), each with appropriate slopes and intercepts and integrated over the appropriate time intervals. The zero-value interval is implicit in those integrations, but does not have to be specifically included.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Fourier Analysis and Filtering in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!