MATLAB ヘルプ センター
線形位相 FIR フィルターのタイプ
t = firtype(b)
t = firtype(d)
t = firtype(b) は、FIR フィルターのタイプ t を判定します。フィルター係数をベクトル b で指定します。t は 1、2、3、または 4 になります。フィルターは実数で、線形位相をもたなければなりません。
t
b
例
t = firtype(d) は FIR フィルター d のタイプ t を判定します。t は 1、2、3 または 4 になります。フィルターは実数で、線形位相をもたなければなりません。
d
すべて折りたたむ
ウィンドウ法を使用して 2 つの FIR フィルターを設計します。片方の次数は偶数、もう一方の次数は奇数です。タイプを判別し、インパルス応答をプロットします。
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))])
2 つの等リップル ヒルベルト変換器を設計します。片方の次数は偶数、もう一方の次数は奇数です。タイプを判別し、インパルス応答をプロットします。
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
designfilt を使用して、前述の例のフィルターを設計します。タイプを表示します。
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"
FIR フィルターのフィルター係数。倍精度または単精度の実数値の行ベクトルまたは列ベクトルで指定します。
データ型: double | single
double
single
FIR フィルター。digitalFilter オブジェクトで指定します。デジタル フィルターを周波数応答仕様に基づいて生成するには、関数 designfilt を使用します。
フィルター タイプ。1、2、3 または 4 のいずれかとして返されます。フィルター タイプの定義は次のとおりです。
タイプ 1 — 偶数の次数で対称の係数
タイプ 2 — 奇数の次数で対称の係数
タイプ 3 — 偶数の次数で反対称の係数
タイプ 4 — 奇数の次数で反対称の係数
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.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ