Controlling linewidth in a bunch of curves using 'semilogx'

조회 수: 15 (최근 30일)
SAZZAD HOSSAIN
SAZZAD HOSSAIN 2012년 5월 12일
댓글: Maxime Malbois 2022년 5월 15일
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에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by