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.

how to use "ss2tf" in matlab?

Status
Not open for further replies.

gxangel

Newbie level 1
Newbie level 1
Joined
Sep 21, 2004
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
7
matlab ss2tf

hi hi, i'm a beginner in matlab and have been having problems regarding the "ss2tf" function. i type in:
A=[-2 -2;2 -2]
B=[2;0]
C=eye(2)
D=zeros(2,1)

find ss2tf
and it gives me:
ans: 1 2 3 4 5
instead of:
NUM= 2 2
DEN= 4
which i'm expecting as the ans. can anyone out there help me?
 

ss2tf

Help ss2tf

SS2TF State-space to transfer function conversion.
[NUM,DEN] = SS2TF(A,B,C,D,iu) calculates the transfer function:

NUM(s) -1
H(s) = -------- = C(sI-A) B + D
DEN(s)
of the system:
.
x = Ax + Bu
y = Cx + Du

from the iu'th input. Vector DEN contains the coefficients of the
denominator in descending powers of s. The numerator coefficients
are returned in matrix NUM with as many rows as there are
outputs y.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top