File Exchange

image thumbnail

GUI for Root Locus

version (31.9 KB) by Erik
This program helps to sketch root locus plot


Updated 24 Oct 2011

View Version History

View License

Invoke the function by calling with a transfer function as its argument.

>> mySys=tf([1 3],[1 5 12 8 0])
>> RLocusGui(mySys) %Invoke GUI

Thought Matlab can create root locus plots, it is still useful to sketch root locus plots by hand. The program, RLocsuGui, takes loop gain as input and then applies (and visually demonstrates) all of the rules that are typically used to sketch the plot by hand.

The program also creates a web page describing the rules as applied to the given loop gain.

The zip file contains a ".m" file and a ".fig" file. Put them both in a directory that is in the Matlab path.

Cite As

Erik (2020). GUI for Root Locus (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (20)

Abdullah CAKAN

excellent work ! Thank you !

Adam Din

Absolutely phenomenal code from yourself! Literally helping me pass control systems engineering, the code is so simple, you can just change the transfer function and it does the rest itself. 10/10 sir

Diego Guevara

Rodrigo Silverio

Mikel Ayestaran

at line 97 of the code you can change the tranfer function.


Christoph Luz

Venkatkumar M

in this gui only upto 7 variables are possible and so 7 is the limit how to increase the limit?

Abrar Shaikh

Colin King

Correction: It would be really nice if I didn't have to dig through the code to edit the function

Colin King

Really nice GUI. It would be really nice if we could input our own transfer function, however.


amazing work. made learning root locus became easier.



work great, hope u can include a graph paper layout, so that the graph is easier to analysis

Ahmad Sandouka

Nabil al-hadawy

******** Thank you *********
Don't exist any error
This is GUI very nice

s a

it's genius-taught me what seasoned professors couldn't

dr chen

Lot of errors in this program

f f

This program as lot of bugs

jose uerba

It is a elegance form

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!