How can I change the line width in a graph which is generated by rlocus command ?
Show older comments
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
Azzi Abdelmalek
on 23 Feb 2013
Which line have you selected?
Brenno
on 23 Apr 2013
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
on 11 Aug 2015
You could use the following command: set(findall(gcf,'Type','line'),'LineWidth',2)
Answers (2)
Azzi Abdelmalek
on 23 Feb 2013
Without opening figure properties, select any point of your plot, then in windows command type:
set(gco,'LineWidth',4) % For example
2 Comments
Ahmed
on 23 Feb 2013
Azzi Abdelmalek
on 23 Feb 2013
Edited: Azzi Abdelmalek
on 23 Feb 2013
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)
Categories
Find more on Classical Control Design in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!