필터 지우기
필터 지우기

how to use fir1 for highpass filter with window

조회 수: 2 (최근 30일)
anchitta sangsawang
anchitta sangsawang 2020년 2월 22일
i have a problem while using fir1 with highpass and window function .
ex.
fc=input('cutoff frequency : ');
fs=input('sampling frequency : ');
order=input('order : ');
[b,a] = fir1(order,(2*fc)/fs,'high',rectwin(order+1));
but when i use '(order+2)' , there is no problem.
fc=input('cutoff frequency : ');
fs=input('sampling frequency : ');
order=input('order : ');
[b,a] = fir1(order,(2*fc)/fs,'high',rectwin(order+2));
the key point :: i want to use order = 5 and i want the result of 5 filter coefficients .

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by