MATLAB Answers

Bandpass filter using firpmord

19 views (last 30 days)
Maria Stroe
Maria Stroe on 29 Mar 2018
Answered: Abhishek Ballaney on 30 Mar 2018
Hello, So I have this bandpass filter with : 0 between 0 and 0.2*pi, 1 between 0.3*pi and 0.5*pi and 0 between 0.6*pi and pi. the passband ripple=0.01 and the stopband ripple=0.05 Sampling frequency=16kHz I have to use firpmord and I have no idea how to make the length of the f vector = 2*length(m)-2 Here is my code
m=[0 0 1 1 0 0]
f=[0 0.2*pi 0.3*pi 0.5*pi 0.6*pi pi]
dev=[0.05,0.05,0.01,0.01,0.05,0.05];
Fs=16000;
[n,fo,mo,w]=firpmord(f,m,dev,Fs)

  0 Comments

Sign in to comment.

Answers (1)

Abhishek Ballaney
Abhishek Ballaney on 30 Mar 2018
https://www.mathworks.com/help/signal/ref/firpmord.html

  0 Comments

Sign in to comment.

Sign in to answer this question.