MATLAB 도움말 센터
Type of linear phase FIR filter
t = firtype(b)
t = firtype(d)
t = firtype(b) determines the type, t, of an FIR filter. Specify the filter coefficients with a vector b. t can be 1, 2, 3, or 4. The filter must be real and have linear phase.
t
b
example
t = firtype(d) determines the type, t, of an FIR filter, d. t can be 1, 2, 3, or 4. The filter must be real and have linear phase.
d
collapse all
Design two FIR filters using the window method, one of even order and the other of odd order. Determine their types and plot their impulse responses.
subplot(2,1,1) b = fir1(8,0.5); impz(b), title(['Type ' int2str(firtype(b))]) subplot(2,1,2) b = fir1(9,0.5); impz(b), title(['Type ' int2str(firtype(b))])
Design two equiripple Hilbert transformers, one of even order and the other of odd order. Determine their types and plot their impulse responses.
subplot(2,1,1) b = firpm(8,[0.2 0.8],[1 1],'hilbert'); impz(b), title(['Type ' int2str(firtype(b))]) subplot(2,1,2) b = firpm(9,[0.2 0.8],[1 1],'hilbert'); impz(b), title(['Type ' int2str(firtype(b))])
digitalFilter
Use designfilt to design the filters from the previous example. Display their types.
designfilt
d1 = designfilt("lowpassfir",DesignMethod="window", ... FilterOrder=8,CutoffFrequency=0.5); disp(["d1 is of type " int2str(firtype(d1))])
"d1 is of type " "1"
d2 = designfilt("lowpassfir",DesignMethod="window", ... FilterOrder=9,CutoffFrequency=0.5); disp(["d2 is of type " int2str(firtype(d2))])
"d2 is of type " "2"
d3 = designfilt("hilbertfir",DesignMethod="equiripple", ... FilterOrder=8,TransitionWidth=0.4); disp(["d3 is of type " int2str(firtype(d3))])
"d3 is of type " "3"
d4 = designfilt("hilbertfir",DesignMethod="equiripple", ... FilterOrder=9,TransitionWidth=0.4); disp(["d4 is of type " int2str(firtype(d4))])
"d4 is of type " "4"
Filter coefficients of the FIR filter, specified as a double- or single-precision real-valued row or column vector.
Data Types: double | single
double
single
FIR filter, specified as a digitalFilter object. Use designfilt to generate a digital filter based on frequency-response specifications.
Filter type, returned as either 1, 2, 3, or 4. Filter types are defined as follows:
Type 1 — Even-order symmetric coefficients
Type 2 — Odd-order symmetric coefficients
Type 3 — Even-order antisymmetric coefficients
Type 4 — Odd-order antisymmetric coefficients
Introduced in R2013a
designfilt | digitalFilter | islinphase
islinphase
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의