From: Wayne King on
"david t53" <david_t53(a)sogetthis.com> wrote in message <i11lv7$dj8$1(a)fred.mathworks.com>...
> Thanks for the answers.
>
> I am looking for some insights, such as:
>
> what is the purpose of a fdesign.parameq when there is already a fdesign.bandpass and a fdesign.bandstop? that is, what is the difference on using the parameq instead of one of the other two?
>
> or, some more explanation about fdesign.interpolator, and its relation to all the other filter responses?

Hi David, have a look at the demos:

showdemo('parameqdemo')

and

showdemo('deciminterpdesigndemo')


Wayne
From: david t53 on
Great, thanks!
From: kk KKsingh on
"Wayne King" <wmkingty(a)gmail.com> wrote in message <i11npc$8ov$1(a)fred.mathworks.com>...
> "david t53" <david_t53(a)sogetthis.com> wrote in message <i11lv7$dj8$1(a)fred.mathworks.com>...
> > Thanks for the answers.
> >
> > I am looking for some insights, such as:
> >
> > what is the purpose of a fdesign.parameq when there is already a fdesign.bandpass and a fdesign.bandstop? that is, what is the difference on using the parameq instead of one of the other two?
> >
> > or, some more explanation about fdesign.interpolator, and its relation to all the other filter responses?
>
> Hi David, have a look at the demos:
>
> showdemo('parameqdemo')
>
> and
>
> showdemo('deciminterpdesigndemo')
>
>
> Wayne

Hello Wayne!

I have a single trace ! And i want to make a low pass filter which will restrict the frequency between 0 - 50 Hz....it has a sampling frequency of 1000 Hz ..would like to know best way for this ! I dont want to go much in filter design

Thanks

Kumar
From: kk KKsingh on
"kk KKsingh" <akikumar1983(a)gmail.com> wrote in message <i12pvg$ftu$1(a)fred.mathworks.com>...
> "Wayne King" <wmkingty(a)gmail.com> wrote in message <i11npc$8ov$1(a)fred.mathworks.com>...
> > "david t53" <david_t53(a)sogetthis.com> wrote in message <i11lv7$dj8$1(a)fred.mathworks.com>...
> > > Thanks for the answers.
> > >
> > > I am looking for some insights, such as:
> > >
> > > what is the purpose of a fdesign.parameq when there is already a fdesign.bandpass and a fdesign.bandstop? that is, what is the difference on using the parameq instead of one of the other two?
> > >
> > > or, some more explanation about fdesign.interpolator, and its relation to all the other filter responses?
> >
> > Hi David, have a look at the demos:
> >
> > showdemo('parameqdemo')
> >
> > and
> >
> > showdemo('deciminterpdesigndemo')
> >
> >
> > Wayne
>
> Hello Wayne!
>
> I have a single trace ! And i want to make a low pass filter which will restrict the frequency between 0 - 50 Hz....it has a sampling frequency of 1000 Hz ..would like to know best way for this ! I dont want to go much in filter design
>
> Thanks
>
> Kumar


One more question

1. Suppose if you have irregular signal ! And now you want to band limit it so that i can apply the reconstruction algorithm on it ! So what is suggested way to go in frequency domain..using DFT or i can put zeros in place of missing samples in FFT ....PLease put some light on it

Thanks

Kumar
From: Wayne King on
"kk KKsingh" <akikumar1983(a)gmail.com> wrote in message <i12pvg$ftu$1(a)fred.mathworks.com>...
> "Wayne King" <wmkingty(a)gmail.com> wrote in message <i11npc$8ov$1(a)fred.mathworks.com>...
> > "david t53" <david_t53(a)sogetthis.com> wrote in message <i11lv7$dj8$1(a)fred.mathworks.com>...
> > > Thanks for the answers.
> > >
> > > I am looking for some insights, such as:
> > >
> > > what is the purpose of a fdesign.parameq when there is already a fdesign.bandpass and a fdesign.bandstop? that is, what is the difference on using the parameq instead of one of the other two?
> > >
> > > or, some more explanation about fdesign.interpolator, and its relation to all the other filter responses?
> >
> > Hi David, have a look at the demos:
> >
> > showdemo('parameqdemo')
> >
> > and
> >
> > showdemo('deciminterpdesigndemo')
> >
> >
> > Wayne
>
> Hello Wayne!
>
> I have a single trace ! And i want to make a low pass filter which will restrict the frequency between 0 - 50 Hz....it has a sampling frequency of 1000 Hz ..would like to know best way for this ! I dont want to go much in filter design
>
> Thanks
>
> Kumar

Hi Kumar,
One possible filter is

h = fdesign.lowpass('Fp,Fst,Ap,Ast',50,60,.5,60,1000);
d = design(H);
% view your filter
fvtool(d)

That filter has 229 coefficients since I have made the passband-stopband transition pretty steep and used 60 dB of stopband attenuation. You can relax these requirements if you do not need that sharp a transition or that much stopband attenuation and you will obtain a shorter length filter.

Filter your data with the filter object, d:

Output = filter(d,Input);

Wayne