legend on a plot.
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi All, I Plot a 250x10 matrix. But I only want the legend for the 3rd 5th and 9th element.
How can I do this?
0 Commenti
Risposta accettata
Sean de Wolski
il 16 Lug 2012
Use the handle explicitly:
h = plot(cumsum(rand(250,10)));
legend(h([3 5 9]),'third','fifth','ninth')
And for more info:
doc legend
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Legend in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!