フィルターのクリア

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

3 ビュー (過去 30 日間)
Mihajlo
Mihajlo 2024 年 1 月 27 日
コメント済み: Mihajlo 2024 年 1 月 28 日
If someone can help me, I would like to write equal functions in C language. Thanks.
  1 件のコメント
Walter Roberson
Walter Roberson 2024 年 1 月 27 日
With buffer overlap or without buffer overlap ?

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2024 年 1 月 27 日
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 件のコメント
Mihajlo
Mihajlo 2024 年 1 月 28 日
I would like to do it with overlap. Thank you.
Mihajlo
Mihajlo 2024 年 1 月 28 日
It says that It can be converted using MATLAB Coder, that I have. But I dont know how to do this.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by