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 Kommentare

Which line have you selected?
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)

Melden Sie sich an, um zu kommentieren.

Antworten (2)

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

2 Kommentare

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

Melden Sie sich an, um zu kommentieren.

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.

Gefragt:

am 23 Feb. 2013

Beantwortet:

am 1 Jun. 2026 um 20:56

Community Treasure Hunt

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

Start Hunting!

Translated by