How can I name different plots?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MAHMOUD ALZIOUD
am 25 Okt. 2017
Kommentiert: MAHMOUD ALZIOUD
am 27 Okt. 2017
hello Everyone ,
I draw a lot of monthly data plot by a for loop from 1 to K, and each plot depends on the inputs from every month. I want to make a statement in each plot saying (This Month is 1, OR 2 or etc.). how can I please do that? the month variable in my code is called month and it is from 1 to 12.
2 Kommentare
Akzeptierte Antwort
KSSV
am 27 Okt. 2017
months = {'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','sep','oct','Nov','Dec'} ;
for i = 1:12
data = rand(10,1) ;
h(i) = figure ;
plot(data) ;
title(months{i}) ;
end
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!