PROBLEM IN DESIGNING A LOW PASS FILTER
Afficher commentaires plus anciens
I have to design a lowpass filter with passband of 0-1000Hz and sampling rate of 10kHz when i implement using fdatool it works but when I use this piece of code there is an error saying 'Value must be strictly positive'. Here is the code please correct me
d = fdesign.lowpass('Fp,Fst,Ap,Ast',0,1000,1,80,10000);
Hd1 = design(d,'equiripple');
t = 0:1e-4:1;
x = cos(2*pi*500*t)+0.5*cos(2*pi*1000*t);
out = filter(Hd1,x);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Filter Design dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!