Coding error for web version
1 回表示 (過去 30 日間)
古いコメントを表示
filtTx = dsp.FIRFilter('Structure', 'Direct form symmetric', ...
'Numerator', fnorm);
Why This coding show an error?
0 件のコメント
回答 (1 件)
Satwik
2023 年 6 月 22 日
Hi Mollah,
I understand that you are trying to get a finite impulse response using dsp toolbox but getting some error.
I see that you are using Name Value pair "Structure" and "Numerator" along with the FIRFilter function.
According to the documentation 'Numerator' should be a row vector i.e just one row.
Assign 'fnorm' to a row vector and try running it again.
For more details go through the required documentation - FIRFilter
Please look into the below code for reference:
fnorm = [1 2]; % Making fnorm a row vector
filtTx = dsp.FIRFilter('Structure', 'Direct form symmetric', ...
'Numerator', fnorm)
Hope this helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!