Sinewave analysis in LPF
古いコメントを表示
[EDIT: 20110808 10:29 CDT - reformat - WDR]
i have designed a LPF with the following spec.
%Low frequncy range BPF --------its actually a low pass filter with passband ripple=0.7db,stopband ripple=90db, passband=1000hz, stopband=1200hz.
My doubt is i have generated simulated sine wave with following spec.
fs = 20481; %sampling freq.
input_freq = 400;
t = 0:(1/fs):((1/fs)* (20481));
u = (0.7* sin(2*pi*input_freq*t));
whether i can give this simulated sinewave to my LPF design. If possible how to calculate the order of the filter and filter coefficient.
Here i am using firpmord() to calculate the order and firpm()for the fir.
回答 (3 件)
Honglei Chen
2011 年 8 月 8 日
0 投票
Hi Venkatesh,
I don't quite understand your question. Since you already used firpmord and firpm, then you already have the order and filter coefficients. Then you can use filter() command to pass your signal through the filter.
HTH
Honglei Chen
2011 年 8 月 9 日
0 投票
You can do that too, since firpm gives an FIR filter.
カテゴリ
ヘルプ センター および File Exchange で Digital Filter Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!