最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Defining length for fft in Matlab - Stack Overflow

matteradmin6PV0评论

I have a question to the command fft in Matlab. By using the default settings Matlab assumes the signal to be periodic with a periodicity of 2π. However, for my problem I need to apply the FFT to a signal that is periodic in L ≠ 2π.

I am sure there is a proper function for this in Matlab. I am pretty new in Matlab and I didn't find anything in the documentation of fft.

To be precise: I want fast fourier transform an array with N emenets by using the frequencies [0, L/N,..., L*(N-1)/N]. I know that it would be easy to write a code by simply calculating the fft manually, but I guess there must be an efficient command available in matlab.

Post a comment

comment list (0)

  1. No comments so far