a legend from a sting array
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a string array with a unknown number of cells in a row. How can I make a legend of them? Every 2D line one cell.
1 commentaire
Réponses (1)
KSSV
le 17 Avr 2018
str{1} = 'one' ;
str{2} = 'two' ;
str{3} = 'three' ;
figure
hold on
for i = 1:3
plot(rand(10,1)) ;
end
legend(str)
Voir également
Catégories
En savoir plus sur Legend dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!