How can I change the line width in a graph which is generated by rlocus command ?

I write the following codes in command window :
sysd=tf([232 0],[451 3408.26 12 2]) ,(or any function)
rlocus(sysd)
the root locus is generated ,after that i need to change the line width of figure so i go to edit-----> figure properties----> then i select the line then select line width = 3 , nothing .
i use MATLAB(R2009a)
thanks

3 Comments

On a follow up to this question is there a way to change the default line thickness of the rlocus, bode, step, etc.. plots. They do not seam to be affected by the
set(0,'defaultlinelinewidth',2)
on a startup.m file
I think it's quite silly to be manually setting the thickness (graphically or by Azzi's command line on the command window) one plot at the time.
You could use the following command: set(findall(gcf,'Type','line'),'LineWidth',2)

Sign in to comment.

Answers (2)

Without opening figure properties, select any point of your plot, then in windows command type:
set(gco,'LineWidth',4) % For example

2 Comments

It should work, Maybe you did not select the plot, click on the line plot, the coordinates will appear

Sign in to comment.

Starting in R2026a, you can do this directly from the rlocusplot command.
rlocusplot(rss(3),LineWidth=5)
Warning: Graphics acceleration hardware is unavailable. Graphics quality and performance might be diminished. See MATLAB System Requirements.

Asked:

on 23 Feb 2013

Answered:

on 1 Jun 2026 at 20:56

Community Treasure Hunt

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

Start Hunting!