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 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 23 日
Which line have you selected?
Brenno
Brenno 2013 年 4 月 23 日
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.
Luis Blas
Luis Blas 2015 年 8 月 11 日
You could use the following command: set(findall(gcf,'Type','line'),'LineWidth',2)

サインインしてコメントする。

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 23 日
Without opening figure properties, select any point of your plot, then in windows command type:
set(gco,'LineWidth',4) % For example

2 件のコメント

Ahmed
Ahmed 2013 年 2 月 23 日
it does not work
thanks
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 23 日
編集済み: Azzi Abdelmalek 2013 年 2 月 23 日
It should work, Maybe you did not select the plot, click on the line plot, the coordinates will appear

サインインしてコメントする。

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.

カテゴリ

質問済み:

2013 年 2 月 23 日

回答済み:

2026 年 6 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by