Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Num1=[37.58 0 1.

294e-13];
Den1=[1 0 26.74 0 9.2*10e-14];
sys1=ss(tf(Num1,Den1))

sys1 =

A =
x1 x2 x3 x4
x1 0 -6.685 0 -2.3e-13
x2 4 0 0 0
x3 0 1 0 0
x4 0 0 1 0

B =
u1
x1 4
x2 0
x3 0
x4 0

C =
x1 x2 x3 x4
y1 0 2.349 0 8.088e-15

D =
u1
y1 0

Continuous-time state-space model.

hdss1=c2d(sys1,0.1,"zoh")

hdss1 =

A =
x1 x2 x3 x4
x1 0.8693 -0.6391 -1.125e-15 -2.199e-14
x2 0.3824 0.8693 -1.513e-16 -4.498e-15
x3 0.01956 0.0956 1 -1.513e-16
x4 0.0006578 0.00489 0.1 1

B =
u1
x1 0.3824
x2 0.07823
x3 0.002631
x4 6.608e-05

C =
x1 x2 x3 x4
y1 0 2.349 0 8.088e-15

D =
u1
y1 0

Sample time: 0.1 seconds


Discrete-time state-space model.

h1 = tf (Num1, Den1);
hd1 = c2d (h1, 0.1)

1
hd1 =

0.1838 z^3 - 0.1838 z^2 - 0.1838 z + 0.1838


-------------------------------------------
z^4 - 3.739 z^3 + 5.477 z^2 - 3.739 z + 1

Sample time: 0.1 seconds


Discrete-time transfer function.

Num2=-1.29*10e-13;
Den2=[1 0 26.74 0 9.2*10e-14];
sys2=ss(tf(Num2,Den2))

sys2 =

A =
x1 x2 x3 x4
x1 0 -6.685 0 -2.3e-13
x2 4 0 0 0
x3 0 1 0 0
x4 0 0 1 0

B =
u1
x1 4.768e-07
x2 0
x3 0
x4 0

C =
x1 x2 x3 x4
y1 0 0 0 -6.763e-07

D =
u1
y1 0

Continuous-time state-space model.

hdss2=c2d(sys2,0.1,"zoh")

hdss2 =

A =
x1 x2 x3 x4
x1 0.8693 -0.6391 -1.125e-15 -2.199e-14
x2 0.3824 0.8693 -1.513e-16 -4.498e-15
x3 0.01956 0.0956 1 -1.513e-16
x4 0.0006578 0.00489 0.1 1

B =
u1
x1 4.559e-08
x2 9.326e-09
x3 3.137e-10
x4 7.877e-12

C =
x1 x2 x3 x4
y1 0 0 0 -6.763e-07

2
D =
u1
y1 0

Sample time: 0.1 seconds


Discrete-time state-space model.

h2 = tf (Num2, Den2);
hd2 = c2d (h1, 0.1)

hd2 =

0.1838 z^3 - 0.1838 z^2 - 0.1838 z + 0.1838


-------------------------------------------
z^4 - 3.739 z^3 + 5.477 z^2 - 3.739 z + 1

Sample time: 0.1 seconds


Discrete-time transfer function.

Num3=-3.75*10^(-13);
Den3=[1 0 26.74 0 9.2*10e-14];
sys3=ss(tf(Num3,Den3))

sys3 =

A =
x1 x2 x3 x4
x1 0 -6.685 0 -2.3e-13
x2 4 0 0 0
x3 0 1 0 0
x4 0 0 1 0

B =
u1
x1 2.384e-07
x2 0
x3 0
x4 0

C =
x1 x2 x3 x4
y1 0 0 0 -3.932e-07

D =
u1
y1 0

Continuous-time state-space model.

hdss3=c2d(sys3,0.1,"zoh")

hdss3 =

A =
x1 x2 x3 x4
x1 0.8693 -0.6391 -1.125e-15 -2.199e-14
x2 0.3824 0.8693 -1.513e-16 -4.498e-15
x3 0.01956 0.0956 1 -1.513e-16
x4 0.0006578 0.00489 0.1 1

B =
u1

3
x1 2.279e-08
x2 4.663e-09
x3 1.568e-10
x4 3.938e-12

C =
x1 x2 x3 x4
y1 0 0 0 -3.932e-07

D =
u1
y1 0

Sample time: 0.1 seconds


Discrete-time state-space model.

h3 = tf (Num3, Den3);
hd3 = c2d (h3, 0.1)

hd3 =

-1.549e-18 z^3 - 1.679e-17 z^2 - 1.679e-17 z - 1.549e-18


--------------------------------------------------------
z^4 - 3.739 z^3 + 5.477 z^2 - 3.739 z + 1

Sample time: 0.1 seconds


Discrete-time transfer function.

Num4=[343.7 0 9191];
Den4=[1 0 26.74 0 9.2*10e-14];
sys4=ss(tf(Num4,Den4))

sys4 =

A =
x1 x2 x3 x4
x1 0 -6.685 0 -2.3e-13
x2 4 0 0 0
x3 0 1 0 0
x4 0 0 1 0

B =
u1
x1 64
x2 0
x3 0
x4 0

C =
x1 x2 x3 x4
y1 0 1.343 0 35.9

D =
u1
y1 0

Continuous-time state-space model.

hdss4=c2d(sys4,0.1,"zoh")

hdss4 =

4
A =
x1 x2 x3 x4
x1 0.8693 -0.6391 -1.125e-15 -2.199e-14
x2 0.3824 0.8693 -1.513e-16 -4.498e-15
x3 0.01956 0.0956 1 -1.513e-16
x4 0.0006578 0.00489 0.1 1

B =
u1
x1 6.119
x2 1.252
x3 0.0421
x4 0.001057

C =
x1 x2 x3 x4
y1 0 1.343 0 35.9

D =
u1
y1 0

Sample time: 0.1 seconds


Discrete-time state-space model.

h4 = tf (Num4, Den4);
hd4 = c2d (h4, 0.1)

hd4 =

1.719 z^3 - 1.269 z^2 - 1.269 z + 1.719


-----------------------------------------
z^4 - 3.739 z^3 + 5.477 z^2 - 3.739 z + 1

Sample time: 0.1 seconds


Discrete-time transfer function.

You might also like