ローパスフィルタでフ​ィルタリングするスク​リプトをmatlab coderでCコードに変換(生成)する方法

15 views (last 30 days)
Mitsuhiro OTSUKI
Mitsuhiro OTSUKI on 1 Feb 2022
Edited: Mitsuhiro OTSUKI on 1 Feb 2022
フィルタデザイナよりエクスポートしたローパスフィルタ(Hd)を
フィルタ関数を使ってフィルタリングするスクリプトを実行し
思った通りの結果が得られたのでCコードに変換するためmatlab coderを
使って変換を行おうとしていますが方法、手順がわかりません。
推奨される方法、手順を教えていただけないでしょうか。
もしくは記載されている資料を教えていただけないでしょうか。
--------------------------------------
>> Fs = 2882;
>> t = linspace(0,1,Fs);
>> y2 = filter(Hd,x);
>> plot(t,x,t,y2);
>> t = linspace(1,2882,Fs);
>> plot(t,x,t,y2);
--------------------------------------

Answers (0)

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!