Why do I get a different Phase graph, when using FFT versus hand calculations?
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
Hi Matlab,
I have calculated the Fourier transform for an equation (by hand) and than entered this into matlab using (FFT) to verify my answer. When I plot the magnitude (against frequency), I get very similar graphs. However when I plot the phase (against frequency), I get two different looking graphs, however the magnitude of the phase looks the same. Can you please explain, I have attached images and code used.
The function I am solving is:
s1 = (t1-3).*exp(-t1).*heaviside(t1-3);
The Fourier Transform of this (Hand Calculation): S1f = (exp(-3.*(1+1i*2*pi*f1)))./((1+1i*2*pi*f1).^2);
I than used FFT to solve s1, to verify my answer above. I than used matlab to plot magitude and phase graphs of the hand calcs and FFT calcs. The magnitude graphs looks ok, however something is wrong with the phase graphs.
Kind Regards Peter
1 commentaire
Rena Berman
le 18 Juil 2017
(Answers Dev) Restored edit
Réponse acceptée
Plus de réponses (0)
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!