| Contents | Index |
angle is a MATLAB function.
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
Plot the phase:
f = (0:length(y)-1)'/length(y)*100; % Frequency vector plot(f,p)

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |