You are on page 1of 4

% choque copa henry erik

% ingenieria mecanica
% pregunta 3
clear
clc
A=[1 0 0 0;2 0 1 2;-2 0 0 -1;1 0 1 -2]
B=[1;2;-2;-1]
C=[1 1 2 -1]
D=0
[nc,dc]=ss2tf(A,B,C,D)
printsys(nc,dc)
[r,p,k]=residue(nc,

A=

1 0 0 0

2 0 1 2

-2 0 0 -1

1 0 1 -2

B=

-2

-1

C=

1 1 2 -1

D=

0
nc =

Columns 1 through 2

0 0

Columns 3 through 4

-4 -4

Column 5

-2

dc =

Columns 1 through 2

1 1

Columns 3 through 4

-1 -1

Column 5

0
num/den =

-4 s^2 - 4 s - 2

-------------------------

s^4 + 1 s^3 - 1 s^2 - 1 s

r=

0.500000000000001

-0.999999999999999

-2.5

p=

-1

-1

You might also like