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!