User:Cxw/How to use the DFT, with Matlab examples
Appearance
< User:Cxw
What is it? | DFT element | matlab example and comments | ||||||
---|---|---|---|---|---|---|---|---|
How often do you want to sample? | sampling frequency |
| ||||||
For how long do you want to sample? | time range |
| ||||||
How many samples does that give you? |
| |||||||
How far apart are each of the frequency-domain result points? |
| |||||||
What signal do you want to sample? | input |
| ||||||
What are the results? | Fourier transform | fft_x=fft(x, length(x)); | ||||||
What frequencies does the signal have? | fft_x_mag=abs(fft_x); | |||||||
What phase relationships? | fft_x_phase=unwrap(angle(fft_x)); | |||||||
How do you view the results? |
| |||||||
What about the power spectrum? |
|
Notes
[edit]References
[edit]Lyons, Richard G. Understanding digital signal processing. Upper Saddle River: Prentice Hall PTR, 2001. ISBN 0-201-63467-8. Chapter 3 discusses the DFT.