From: kk KKsingh on
"Wayne King" <wmkingty(a)gmail.com> wrote in message <i1335c$mc3$1(a)fred.mathworks.com>...
> "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
Hello Wayne !

What is importance of Ap and Ast , I just want to make my signal band limited so that i can check band limited reconstruction algorithms...what should i do with Ap and As..Please guide me..Suppose i take sin signal of 1000Hz sampling frequency

Ap - Passband Ripple (dB)
Ast - Stopband Attenuation (dB)
There is some thing wrong

N=512;
t=0:dt;(n-1)
S=sin(2*pi*80*t);
h = fdesign.lowpass('Fp,Fst,Ap,Ast',50,60,.5,60,1000);
d = design(h);
% view your filter
fvtool(d)
Output = filter(d,S);
figure(1)
plot(abs(Output))
One more question on this ! If my signal is highly irregular will the above codee will work !

Thanks for your support

kumar