Headings for graphs generated in a loop
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
Can anyone tell me how to go about having separate headings for graphs (and histograms) generated in a loop?
Thanks.
0 Kommentare
Akzeptierte Antwort
Thorsten
am 28 Jan. 2013
myheadings = {'first title' 'seccond title' 'yet another title' 'and so one'};
for i = 1:4
plot(rand(1,10))
title(myheadings{i})
pause(1)
end
4 Kommentare
Thorsten
am 28 Jan. 2013
Make sure to use curly braces
myheadings{i}
and that i is the index variable in your loop. Try the example.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Title 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!