You are on page 1of 11

>> H1=tf([0,-3.4,1.5],[1,-1.6,0.

8])

H1 =

-3.4 s + 1.5

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

s^2 - 1.6 s + 0.8

Continuous-time transfer function.

>> s=tf('s');H1=(-3.4s+1.5)/(s^2 -1.6*s +0.8)

s=tf('s');H1=(-3.4s+1.5)/(s^2 -1.6*s +0.8)

Error: Unexpected MATLAB expression.

>> s=tf('s');H1=(-3.4*s +1.5)/(s^2 -1.6*s +0.8)


H1 =

-3.4 s + 1.5

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

s^2 - 1.6 s + 0.8

Continuous-time transfer function.

>> num=[-3.4,1.5];

>> den=[1,-1.6,0.8];

>> [R,P,K]=residue(num,den)

R=

-1.7000 + 1.5250i

-1.7000 - 1.5250i

P=

0.8000 + 0.4000i

0.8000 - 0.4000i

K=

[]

>> [n,d]=residue(R,P,K)
n=

-3.4000 1.5000

d=

1.0000 -1.6000 0.8000

>> H1=tf([0,-3.4,1.5],[1,-1.6,0.8])

H1 =

-3.4 s + 1.5

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

s^2 - 1.6 s + 0.8

Continuous-time transfer function.

>> H1=tf([0,-3.4,1.5],[1,-1.6,0.8]);

>> impulse(H1)

Warning: MATLAB has disabled some advanced graphics

rendering features by switching to software OpenGL. For

more information, click here.

>> impulse (H1,15)

>> [Yi,T]=impulse (H1,15);

>> [Ye,T]=step (H1,15);

>> plot(T,Yi,'r',T,Ye,'b')
>>

>> s=tf('s'); H=5/(s^2+0.4*s+1000)*1/s

H=

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

s^3 + 0.4 s^2 + 1000 s

Continuous-time transfer function.

>> damp (H)

Pole Damping Frequency Time Constant

(rad/seconds) (seconds)

0.00e+00 -1.00e+00 0.00e+00 Inf

-2.00e-01 + 3.16e+01i 6.32e-03 3.16e+01 5.00e+00

-2.00e-01 - 3.16e+01i 6.32e-03 3.16e+01 5.00e+00

>> syms s t

>> G=(5*s^3+35*s^2+73*s+47)/(s^4+9*s^3+29*s^2+41*s+20);

>> g=ilaplace(G*1/s^2);

>> pretty(g)

47 t 2 exp(-t) exp(-4 t)

---- + --------- + ---------

20 3 48

/ 4 sin(t) \

exp(-2 t) | cos(t) - -------- | 12


\ 3 / 467

+ ---------------------------------- - ---

25 400

>> ezplot (g,[0,15])

>> syms a t s

>> g=t*sin(a*t)+exp(-a*t);

>> G=laplace(g);

>> pretty(G)

1 2as

----- + ----------

a+s 2 22

(a + s )

>> a=ilaplace(G)

a=

exp(-a*t) + t*sin(a*t)

>> g=

g=

Error: Expression or statement is incomplete or

incorrect.

>> g

g=
exp(-a*t) + t*sin(a*t)

>>

>> H1=tf([0,10,3],[2,4,0])

H1 =

10 s + 3

-----------

2 s^2 + 4 s

Continuous-time transfer function.

>> num=[10,3];

>> dem=[2,4];

>> [R,P,K]=residue(num,den)

R=

5.0000 -13.7500i

5.0000 +13.7500i

P=

0.8000 + 0.4000i

0.8000 - 0.4000i
K=

[]

>> s=tf('s'); H1=([5.0000 -13.7500i]/[s-(0.8000 + 0.4000i)])+([5.0000 +13.7500i]/[s-(0.8000 -


0.4000i)])

Warning: The numerator or denominator of this transfer

function has complex-valued coefficients.

> In ctrlMsgUtils.warning (line 25)

In tf (line 351)

In tf.convert (line 888)

In ltipack.matchType

In + (line 27)

In - (line 569)

Warning: The numerator or denominator of this transfer

function has complex-valued coefficients.

> In ctrlMsgUtils.warning (line 25)

In tf (line 351)

In tf.convert (line 888)

In ltipack.matchType

In / (line 56)

Warning: The numerator or denominator of this transfer

function has complex-valued coefficients.

> In ctrlMsgUtils.warning (line 25)

In tf (line 351)

In tf.convert (line 888)

In ltipack.matchType

In + (line 27)
In - (line 569)

Warning: The numerator or denominator of this transfer

function has complex-valued coefficients.

> In ctrlMsgUtils.warning (line 25)

In tf (line 351)

In tf.convert (line 888)

In ltipack.matchType

In / (line 56)

H1 =

From input 1 to output:

10 s - 8

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

s^2 - 1.6 s + 0.8

From input 2 to output:

11

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

s^2 - 1.6 s + 0.8

Continuous-time transfer function.

>> syms s t

>> I = (10*s + 3)/(2*s^2 + 4*s);

>> i = ilaplace(I);

>> pretty(i)

exp(-2 t) 17 3

------------ + -
4 4

>> ezplot (i,[0,15])

>>

You might also like