Controlling linewidth in a bunch of curves using 'semilogx'

20 vues (au cours des 30 derniers jours)
SAZZAD HOSSAIN
SAZZAD HOSSAIN le 12 Mai 2012
Commenté : Maxime Malbois le 15 Mai 2022
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

Réponse acceptée

Wayne King
Wayne King le 12 Mai 2012
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
  2 commentaires
SAZZAD HOSSAIN
SAZZAD HOSSAIN le 12 Mai 2012
Thanks very much
Maxime Malbois
Maxime Malbois le 15 Mai 2022
thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by