Continue to Site

# need matlab help for multiband optimal filter

Status
Not open for further replies.

#### vjfaisal

##### Full Member level 4
hi
Anyone knows how to make a mutiband pass optimal filter.As i want to pass different range of frequencies from my data, which is of 50 hz, and i want to pass

1st band = 8 -12 Hz

2nd band= 22- 28 Hz

3rd band= 35-42 Hz

help me , with matlab commands , if anyone know this......

Best regards

This is code - it is very simple
what optimality you want? what is criteria? minimum of crosstalk? your Q is not clear. So my answer may be not satisfactory to you :-(

%% original signal
N=1000;
a=randn(1,N);

%% filters
K=31;
Fn=50;
h1=fir1(K,[18 22]/Fn);
h2=fir1(K,[25 32]/Fn);
h3=fir1(K,[35 42]/Fn);

%% show responses
fvtool(h1,1,h2,1,h3,1)

%% filter
s1=filter(h1,1,a);
s2=filter(h2,1,a);
s3=filter(h3,1,a);

%% show results
fvtool(a) % orig spectrum
fvtool(s1,1,s2,1,s3,1) % filtered spectrums

hi

i donot want this.................. please if u know the remez, command in matlab ,and also remezord....

The remezord is used to calculate the flter order n, of optimal Filter.
Same as i want to to Design Mutiband bandpass optimal Filter.
The frequencies are as i hae given.. i want to pass these multiband pass filter , which could pass these different frequencies.

i have design this filter , which could only calculate, the no. of coffients h.
but i also want to find the order of filter it is....