Root Locus Design using Matlab: Plotting and Analyzing Transfer Functions, Slides of Information Technology

A step-by-step guide on how to design a root locus using Matlab. It covers entering the open loop transfer function, plotting the root locus, setting axis limits, adding grid lines, and finding the gain and roots at specific points. Additionally, it explains how to check the closed loop response and plot the step response.

Typology: Slides

2021/2022

Uploaded on 07/04/2022

dirk88
dirk88 🇧🇪

4.4

(222)

3.1K documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Root locus design using Matlab
First, the open loop transfer function is entered. The numerator, n, and the denominator,
d, are entered as Matlab vectors representing the coefficients of s in descending powers
of s. The transfer function is defined using the function tf.
EDU>n=[1];
EDU>d=[1 4 0];
EDU>g=tf(n,d)
Transfer function:
1
---------
s^2 + 4 s
An alternative way of looking at the transfer function is to show it in factored form using
the zpk (zero-pole-gain) function
.
EDU>zpk(g)
Zero/pole/gain:
1
-------
s (s+4)
The root locus is plotted using the function rlocus. The root locus plot will be produced.
pf3
pf4
pf5
pf8

Partial preview of the text

Download Root Locus Design using Matlab: Plotting and Analyzing Transfer Functions and more Slides Information Technology in PDF only on Docsity!

First, the open loop transfer function is entered. The numerator, n, and the denominator,d, are entered as Matlab vectors representing the coefficients of s in descending powersof s. The transfer function is defined using the function tf. EDU>n=[1];EDU>d=[1 4 0];EDU>g=tf(n,d) Root locus design using Matlab

Transfer function:---------s^2 + 4 s An alternative way of looking at the transfer function is to show it in factored form usingthe zpk (zero-pole-gain) function. EDU>zpk(g)Zero/pole/gain: 1

-------s (s+4) The root locus is plotted using the function rlocus. The root locus plot will be produced.^1

EDU>rlocus(g)

Real Axis

In order to look at just the upper left quadrant of the plot, again use the axis command toset the minimum x value, maximum x value, minimum y value, and maximum y value forthe axes. EDU>axis([-5 1 -1 5])

-1^012 -5 -4 -3 -2 -1 0 1

Real Axis

To put on a grid for the axes marks, use the command grid. EDU>grid

-1^01 -5 -4 -3 -2 -1 0 1

Real Axis

To find the gain and the values of the roots at a specific point use the command rlocfind.The roots are given as the 'selected point' and the gain is given as' ans=' EDU>rlocfind(g)Select a point in the graphics windowselected_point =ans =-2.0096+ 2.0096i

-1^01 -5 -4 -3 -2 -1 0 1

Real Axis

To check the closed loop response, the closed loop transfer function is found using thecommand, feedback.argument is the feedback path.EDU>CLTF=feedback(g8,1)Transfer function: 8 The first argument is the forward path (Gk) and the second -------------s^2 + 4 s + 8To plot the step response of the system, use the command step on the CLOSED looptransfer function.transfer function.EDU>step(CLTF) A common mistake is to find the step response of the open loop

Time (sec.)

Step Response 0.20.40.6 (^00) 0.5 1 1.5 2 2.5 3

0.81.21.4^1