I am trying to extract the phase information of a noisy signal using fft, but unable to understand the plot obtained using 'angle' command.
fs=5000;dt=1/fs;StopTime =0.25; % seconds
t = (0:dt:StopTime-dt)'; % secondsFc = 60; % hertz
ph=30*pi/180;x = 4*sin(2*pi*Fc*t+ph);for i=1:length(t) xn(i)=x(i)+randn;endX=fft(xn);xx=(angle(fftshift(X)));plot(xx)
I am unable to understand this plot. How can I get a phase spectrum showing peak with only 'ph' value?
Best Answer