フィルターのクリア

Generate mex file for filter

1 回表示 (過去 30 日間)
wissam
wissam 2013 年 2 月 1 日
Hi, I have a matlab code and i want to generate a mex file using matlab coder. The code is to design a second order section direct form II filter:
H= dfilt.df2sos( sosMatrix);
mod_data= filter( H, data);
where sosMatrix is the second order section matrix (8 by 6 matrix). All variables are given and defined. The matlab coder displays the following error:
coder -build filter.prj
Warning: The specified compiler (msvcsdk) does not support the OpenMP library;
??? The 'dfilt' class does not support code generation.
How to generate it? I'm using Matlab 2012b.
Best regards, Wissam,

採用された回答

Kaustubha Govind
Kaustubha Govind 2013 年 2 月 4 日
Unfortunately, it doesn't look like you can generate code from this class. Perhaps you can separate out the call to the filter into a separate function and generate a MEX-file from the rest of your code?
PS: For a function unsupported for code-generation, I would have recommended declaring it as |coder.extrinsic>, but according to the documentation, "You cannot use coder.extrinsic to declare a class or method as extrinsic."
  1 件のコメント
wissam
wissam 2013 年 2 月 5 日
Noticed. thank you for the reply..

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by