Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: FIR Filter
Replies: 9   Last Post: Sep 20, 2009 1:25 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
alfredo

Posts: 11
Registered: 5/27/09
Re: FIR Filter
Posted: Sep 19, 2009 9:05 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Rune Allnor <allnor@tele.ntnu.no> wrote in message <6d6346f2-e093-4f73-a99b-156b9b675eb0@y42g2000yqb.googlegroups.com>...
> On 13 Sep, 12:10, "alfredo " <luka_...@hotmail.com> wrote:
> > I have some problems with FIR filter,someone can help me?
> >
> > I write my pseudo code:
> >
> > clear all;
> > Asim=[17, 18]; ?%Definisce le ampiezze
> > Tsim=[22.5, 33.48]; ?%Definisce i periodi
> > fase=[1.1, 2.2]; ?%Definisce le fasi
> > p=1:2048;
> > value=0; ?%Oscilla attorno la linea dello zero se value=0
> > Coseno1=0;
> > Coseno2=0;
> > Coseno1=Coseno1+Asim(1)*cos(2*pi*1/Tsim(1)*p+fase(1))';
> > Coseno2=Coseno2+Asim(2)*cos(2*pi*1/Tsim(2)*p+fase(2))';
> >
> > serie12=Coseno1+Coseno2;
> > step =0.01;
> >
> > serie= serie12;
> > step=0.01;
> > Tmin=8;
> > Tmax=120;
> > A=length(serie);
> >
> > Y=fourier(serie',Tmax,Tmin,step); ? ? ? ? ? ?%fourier trasform
> >
> > Ok , now how can I implement a high pass filter FIR, for cut off ?the frequency 1/ 33.48 ?

>
> What has all this to do with designing filters?
>
> Rune




I try with this:

d = fdesign.highpass('Fst,Fp,Ast,Ap',0.03,0.043,60,0.5,10000) ;
Hd = design(d,'FIR');
smoothed_data = filter(Hd,Y);

but I have some problems, I thik because I have R2007b version...



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.