Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with calculating the cascade realization of a FIR??

Status
Not open for further replies.

juanma21

Newbie level 6
Joined
Feb 24, 2008
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,435
cascade fir matlab

Hello, I've been a lot of time trying to know how to develope a cascade realization of this FIR transfer function with MATLAB:

H(z)=-0.24+0.184z^-1+0.448z^-2+1.296z^-3+0.4448z^-4+0.184z^-5-0.24z^-6;

I read that I have to use the function latc2tf of MATLAB, I just don´t know how to use it, I intriduce the coefficients but it gives me an error.

COuld anyone help me or send me to a webpage with good examples??

Thank You very much!!
 

Re: Problem with calculating the cascade realization of a FI

Thank you very much mathuranatham!

But I tried and get this:

>> b=[-0.24 0.184 0.448 1.296 0.4448 0.184 -0.24]

b =

-0.2400 0.1840 0.4480 1.2960 0.4448 0.1840 -0.2400

>> b=b./-0.24

b =

1.0000 -0.7667 -1.8667 -5.4000 -1.8533 -0.7667 1.0000

>> k=tf2latc(b)
??? Error using ==> d:/matlab/toolbox/signal/signal/private/levdown
At least one of the reflection coefficients is equal to one.
The algorithm fails for this case.

Error in ==> D:\matlab\toolbox\signal\signal\poly2rc.m
On line 48 ==> [a,e(k)] = levdown(a,e(k+1));

Error in ==> D:\matlab\toolbox\signal\signal\tf2latc.m (fir2latc)
On line 151 ==> K = poly2rc(num);

Error in ==> D:\matlab\toolbox\signal\signal\tf2latc.m
On line 54 ==> [K,V,msg] = fir2latc(num,den,phaseOpt,nargout);

This is the same problem that I was having before.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top