Controlling linewidth in a bunch of curves using 'semilogx'

8 次查看(过去 30 天)
Hi all
I am trying to draw a set of curves on the same plot using semilogx command, which looks like
semilogx ( n,Ex,'k', n,Ey,'k', n,Ez,'k', n,Ev,'k')
I need to put different line widths for the four sets of data. can anybody please tell me the commands to assign different widths in this case.
Thanks

采纳的回答

Wayne King
Wayne King 2012-5-12
h = semilogx(n,Ex,'k',n,Ey,'k',n,Ez,'k',n,Ev,'k');
set(h(1),'linewidth',2);
set(h(2),'linewidth',1.5);
And so on

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by