You are on page 1of 3

a=tf(10, [2 1])

a=

10

-------

2s+1

Continuous-time transfer function.

>> b=tf(1, [0.4 1], 'inputdelay',0.7)

b=

exp(-0.7*s) * ---------

0.4 s + 1

Continuous-time transfer function.

>> r=a*b

r=

10

exp(-0.7*s) * -------------------

0.8 s^2 + 2.4 s + 1

Continuous-time transfer function.

>> bode(r)
>> n(0:1:100);

Undefined function 'n' for input arguments of type 'double'.

>> n=(0:1:100);

>> bode(n,r)

>> n=(0:1:10);

>> bode(n,r)

>> n=(0:1:5);

>> bode(n,r)

>> grid on

>> bode(n,r)

>> rlocus(n,r)

Error using DynamicSystem/rlocus (line 66)

The "rlocus" command cannot be used for continuous-time models with delays. Use the
"pade"

command to approximate delays.

>> pid

ans =

Kp = 1

P-only controller.

>> pid(2,3,3)

ans =

Kp + Ki * --- + Kd * s
s

with Kp = 2, Ki = 3, Kd = 3

Continuous-time PID controller in parallel form.

>> pid(2,3,0)

ans =

Kp + Ki * ---

with Kp = 2, Ki = 3

Continuous-time PI controller in parallel form.

>> pid(2,0,0)

ans =

Kp = 2

P-only controller.

>>

You might also like