Discussion Overview
The discussion revolves around an issue with the Fast Fourier Transform (FFT) in Matlab, specifically regarding the frequency response of a cosine signal when zero padding is applied. Participants explore the implications of sampling rates, frequency scaling, and the interpretation of FFT output.
Discussion Character
- Technical explanation
- Conceptual clarification
- Debate/contested
Main Points Raised
- One participant notes a spike at 75 Hz after zero padding a 50 Hz cosine signal and seeks clarification on this phenomenon.
- Another participant suggests that the spike could be due to DFT aliasing, questioning whether the 50 Hz peak is still present.
- Concerns are raised about the sampling rate being sufficient according to the Nyquist–Shannon theorem, prompting a request for the participant's sampling rate.
- It is proposed that the frequency scale may have changed due to the additional sample data, leading to confusion about the identification of the 75 Hz spike.
- A participant explains that the highest frequency corresponds to the sampling rate and the lowest frequency to the time interval, providing a calculation for the index of the 50 Hz peak.
- Clarifications are made regarding the relationship between the number of samples and frequency resolution, indicating that the peak remains consistent but its index changes with more samples.
- One participant humorously notes that Matlab's indexing starts at 1 rather than 0, which may contribute to confusion in interpreting the FFT output.
Areas of Agreement / Disagreement
Participants generally agree on the relationship between sampling, frequency resolution, and FFT output interpretation. However, there remains some uncertainty regarding the implications of zero padding and the interpretation of frequency indices.
Contextual Notes
Limitations include potential misunderstandings about how Matlab scales frequency outputs and the effects of zero padding on frequency representation. The discussion does not resolve whether the interpretation of the frequency response is consistent across different configurations.
Who May Find This Useful
This discussion may be useful for individuals working with FFT in Matlab, particularly those interested in signal processing, frequency analysis, and the effects of sampling and zero padding on frequency representation.