I have to design FIR Highpass Filter according to given Plot(Picture Attached). Using Rectangular and Kaiser Window with Different Cutoff Frequencies.
My Problem is that i am able to generate Stopband Riples with equal width but in given problem riple width attenuates with increase in frequency. Should I use command other than fir1 ?
Filter To be Designed
My Designed Filter Output
Here is my Code so far.
clc;clear all; close all;
A=36;
N=30;
fs=48000;
fc=10000;
omega=2*fc/fs;
k=0:1:N;
beta=0.5842*((A-21)^0.4)+0.07886*(A-21)
kaiser_win=kaiser(N+1,beta);
b_fir1 = fir1(N,omega,'high',kaiser_win);
f = linspace(0,10000,10000); %frequency vector
H_fir1 = freqz(b_fir1,1,f,fs);
plot(f,db(abs(H_fir1)))
grid
xlabel('frequency in Hz'), ylabel('amplitude in dB')
%axis([0 10000 -60 6])
title('Window method (FIR)')