How to Figure Phase Spectrum of a Signal?
42 views (last 30 days)
Show older comments
Commented: Maria Amr on 29 May 2021
I have a small signal (attached) to figure the amplitude and phase spectrum. I have figured the amplitude but I am not sure the phase is correct. I would appreciate if someone help me. Thank you in advance!
S = fft(amp)/NFFT;
P2 = abs(S)*2;
PP=phase(S); %Phase Spectrum
Jonas on 29 May 2021
looks good, there was a similar post in https://de.mathworks.com/matlabcentral/answers/308872-how-can-i-determine-phase-in-fft
and another one on the question on the difference between angle() and phase() function here https://de.mathworks.com/matlabcentral/answers/318990-what-is-difference-between-unwrap-angle-x-and-phase-x
More Answers (0)
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!