Hi, I have a question about buffer function and about fft function.

回答(1 个)

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

2 个评论

I would like to do it with overlap. Thank you.
It says that It can be converted using MATLAB Coder, that I have. But I dont know how to do this.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息

产品

版本

R2023b

标签

提问:

2024-1-27

评论:

2024-1-28

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by