Signal Processing Toolbox |
angle
is a MATLAB function.
Signal-specific Example
Calculate the phase of the FFT of a sequence.
t = (0:99)/100; % Time vector x = sin(2*pi*15*t) + sin(2*pi*40*t); % Signal y = fft(x); % Compute DFT of x p = unwrap(angle(y)); % Phase
ac2rc | arburg |
© 1994-2005 The MathWorks, Inc.