Hi, I have a question about buffer function and about fft function.
显示 更早的评论
If someone can help me, I would like to write equal functions in C language. Thanks.
1 个评论
Walter Roberson
2024-1-27
With buffer overlap or without buffer overlap ?
回答(1 个)
Walter Roberson
2024-1-27
0 个投票
Buffer without overlap is easy.
- take the length of the signal
- do an integer division by the buffer length to get the number of buffers
- take the signal length modula the buffer length
- if the modula is non-zero add one to the number of buffers
- allocate a chunk of memory that is (number of buffers times buffer length) long.
- memcpy the signal into the buffer
- if the modulo of the signal length and the buffer was non-zero then initialize the rest of the buffer to zero
类别
在 帮助中心 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!