Why do I get a different Phase graph, when using FFT versus hand calculations?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
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 Comment
Rena Berman
on 18 Jul 2017
(Answers Dev) Restored edit
Accepted Answer
More Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!