remez function not working
古いコメントを表示
I am using the remez function in a Filter and impulse response exercise. It is however giving me an error "??? Index exceeds matrix dimensions." Below is the short code where the error is coming in:
N = 41; F = [0 F1 F2 1]; M = [0 0 1 1]; B = remez(N-1,F,M)
I am struggling to figure out what it is I am doing wrong
採用された回答
その他の回答 (1 件)
Wayne King
2012 年 9 月 25 日
You did not tell us what Fs is
Fstop=2005; Fcutoff=2500;
F1=2*Fcutoff/Fs; F2=Fstop/Fs;
but the potential problem is here that your F1 can be higher than your F2 value. Your frequencies have to be increasing in the frequency vector
カテゴリ
ヘルプ センター および File Exchange で Statistics and Linear Algebra についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!