Set line width in Matlab

Ming Sun

Ming Sun / October 27, 2022

0 min read––– views

In Matlab, for some of the plot functions do not take the LineWidth as its input parameter, such as bode. The following code snippet shows an universal way to set the linewidth in Matlab[1].

set(findall(gcf,'type','line'),'linewidth',2)
Bode plot

References and materials

[1] MathWorks blog post


HomeWikis
SnippetsAbout
Google ScholarLinkedIn