精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 在設(shè)計(jì)FIR濾波器時(shí)遇到點(diǎn)問題,

    在設(shè)計(jì)FIR濾波器時(shí)遇到點(diǎn)問題,
    clear all;
    wlp=0.2*pi;wls=0.35*pi;wus=0.65*pi;wup=0.8*pi;
    B=wls-wlp;
    M=ceil(12*pi/B)-1;
    wp=[(wls+wlp)/2/pi,(wus+wup)/2/pi];
    hn=fir1(M,wp,'stop',blackman(M+1));
    運(yùn)行該程序會顯示如下錯(cuò)誤:
    Error using ==> fir1 at 92
    The window length must be the same as the filter length.
    具體該怎么解決那?
    運(yùn)行了還是一樣的!
    Error using ==> fir1 at 92
    The window length must be the same as the filter length.
    Error in ==> ex723 at 6
    hn=fir1(M,wp,'stop',blackman(M));
    英語人氣:108 ℃時(shí)間:2020-07-02 12:36:40
    優(yōu)質(zhì)解答
    先看下fir1中的一段解釋
    For filters with a gain other than zero at Fs/2, e.g., highpass
    and bandstop filters, N must be even.Otherwise, N will be
    incremented by one.In this case the window length should be
    specified as N+2.
    即高通、帶阻濾波器的階數(shù)應(yīng)該控制為奇數(shù),因?yàn)槿绻A數(shù)為偶數(shù),則在π點(diǎn)必有一零點(diǎn),這對于高通帶阻來說是不允許的,故取階數(shù)為奇數(shù),而你FIR1濾波器階數(shù)為M+1階,所以你的M必須為偶數(shù),所以可以將程序改為
    clear all;
    clc
    wlp=0.2*pi;wls=0.35*pi;wus=0.65*pi;wup=0.8*pi;
    B=wls-wlp;
    M=ceil(12*pi/B);
    M=M+mod(M,2);
    wp=[(wls+wlp)/2/pi,(wus+wup)/2/pi];
    hn=fir1(M,wp,'stop',blackman(M+1));
    freqz(hn)
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版