Phase spectrum and phase angle

조회 수: 2 (최근 30일)
Matlabuser
Matlabuser 2015년 4월 29일
댓글: Matlabuser 2015년 4월 29일
Hi everyone, I have a data series,How can I calculate phase spectrum by using fft and then phase angle for the series.
Thank You
  댓글 수: 1
Matlabuser
Matlabuser 2015년 4월 29일
I have a sine series and calculated the amplitude, power and phase spectra for that. I am not sure about my code and don't know how to read the angle from phase spectra, My program is like this::
close all;clear all;clc; t=0:0.5:100; f=10; fi= 30*pi/180; x=sin(2*pi*f*t+fi); figure plot(t,x) Y=fft(x,128); Amp = (abs(Y)); % Amplitude Pyy= (Y.* conj(Y))/128; % Power f=(0:100)/128; figure; plot(f,Amp(1:101)) figure; plot (f,Pyy(1:101)) Phase= (imag(Y)./real (Y)); Pa=angle(Y)*180/pi; %P2=(P1)*180/pi; plot (Pa')

댓글을 달려면 로그인하십시오.

채택된 답변

Thorsten
Thorsten 2015년 4월 29일
pa = angle(fft(s));
  댓글 수: 1
Matlabuser
Matlabuser 2015년 4월 29일
Hi Thorsten, I applied this command to my series. But I am not able to understand the results

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by