with the plot is there possible to write name ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
In this plot there are several y values from different files, I want to give names of file with color name I am not able to fine which color represent which file? I want to write file name within plot itself?
0 Kommentare
Akzeptierte Antwort
David Sanchez
am 9 Aug. 2013
For example: If your plot command goes like:
plot(x1,y1,x2,y2,x3,y3,x4,y4,....); % plotting xith against yith
add the legend in the same order than variables were added into the plot command
legend('var1','var2','var3','var4',...)
You'll see on the legend what colour each pair of variables has on the plot.
2 Kommentare
David Sanchez
am 9 Aug. 2013
For adding text to your plot, try the text command:
help text
doc text
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Legend 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!