Plotting multiple profile and giving those different names using a loop

3 vues (au cours des 30 derniers jours)
SUBROTA HALDER
SUBROTA HALDER le 1 Sep 2016
Réponse apportée : KSSV le 2 Sep 2016
I have 12 temperature profile (temperature with height) and I want to plot those profile by using a loop and title of each should be January 01, 2015, January 02, 2015 ...... please help me.
  1 commentaire
Walter Roberson
Walter Roberson le 1 Sep 2016
How are the profiles stored in variables?
Is the data vector or 2D ?
Are all of the data to be put into the same plot, or is this to create multiple plots?

Connectez-vous pour commenter.

Réponses (1)

KSSV
KSSV le 2 Sep 2016
You can use legends.....
x = -pi:pi/20:pi;
y1 = sin(x);
y2 = cos(x);
plot(x,y1,'-ro',x,y2,'-.b')
legend('sin(x)','cos(x)')

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by