0% found this document useful (0 votes)
63 views

Num 1 - Den (1 1) - Den - 1 1 - Sys TF (Num, Den) - Transfer Function: - 1 - S + 1

This document demonstrates various operations that can be performed on transfer functions in MATLAB such as creating transfer functions from numerator and denominator coefficients, combining transfer functions using series, parallel and feedback connections, and plotting bode diagrams, step responses and pole-zero maps. Key functions used include tf, series, parallel, feedback, step, bode, roots, rlocus, and residue.

Uploaded by

rdsraj
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views

Num 1 - Den (1 1) - Den - 1 1 - Sys TF (Num, Den) - Transfer Function: - 1 - S + 1

This document demonstrates various operations that can be performed on transfer functions in MATLAB such as creating transfer functions from numerator and denominator coefficients, combining transfer functions using series, parallel and feedback connections, and plotting bode diagrams, step responses and pole-zero maps. Key functions used include tf, series, parallel, feedback, step, bode, roots, rlocus, and residue.

Uploaded by

rdsraj
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 26

>> num=1;

>> den = [1 1]
den =

>> sys = tf(num,den)


Transfer function:
1
----s+1

>> sys1 = tf(num,den.*2)


Transfer function:
1
------2s+2

>> series (sys,sys1)


Transfer function:
1
--------------2 s^2 + 4 s + 2

>> parallel (sys,sys1)


Transfer function:
3s+3
--------------2 s^2 + 4 s + 2

>> feedback(sys,sys1)
Transfer function:
2s+2
--------------2 s^2 + 4 s + 3

>> feedback(sys,1)
Transfer function:
1
----s+2

>> feedback(sys,2)
Transfer function:
1
----s+3

step(sys)

step(sys,sys1)

grid

roots([1 2 1])
ans =

-1
-1

>> roots([1 4 4])


ans =

-2
-2

>> roots([1 4 5])


ans =

-2.0000 + 1.0000i
-2.0000 - 1.0000i

>>rlocus(feedback(sys,sys1))

>>bode(feedback(sys,sys1))

>> num = 1;
>> den = [1 4 5];
>> residue (num,den)
ans =

0 - 0.5000i
0 + 0.5000i

>> den1=[1 2];


>> den2=[1 1];
>> den=conv(den1,den2)
den =

You can create transfer function (TF)


models by specifying numerator and
denominator coefficients.

A useful trick is to create the Laplace variable, s.


That way, you can specify polynomials using s
as the polynomial variable.

This is identical to the previous transfer function.

For example,
P = tf([1 2],[1 1 10])
creates a TF object, P, that stores the
numerator and denominator coefficients of
the transfer function

P = tf([1 2],[1 1 10])


Q=2+P
performs transfer function addition.

For example, the parallel connection of


two LTI systems sys1 and sys2 can be
expressed as
sys = sys1 + sys2
because parallel connection amounts to
adding the transfer matrices.

STEP(SYS) plots the step response of the


LTI model SYS. For multi-input models,
independent step commands are applied
to each input channel. The time range
and number of points are chosen
automatically.

feedback(sys1,sys2)

Bode
Impulse
Step
pole
Zero

You might also like