Plot - add legend individually
Afficher commentaires plus anciens
How can I update the legend of each plot individually rather than at the end of the code ?
plot(x1, y1, '-vr', 'LineWidth', linewidth, 'MarkerSize', markersize);
legend('Algorithm 1');
plot(x2, y2, '-vr', 'LineWidth', linewidth, 'MarkerSize', markersize);
legend('Algorithm 2');
The code above overwrites the legend for Algorithm 1
1 commentaire
ROBIN KUMAR
le 18 Fév 2022
The same problem I have been facing with R2021a version. Please help me execute the same..
Réponse acceptée
Plus de réponses (1)
ROBIN KUMAR
le 18 Fév 2022
0 votes
The same problem I have been facing with R2021a version. Please help me execute the same..
Catégories
En savoir plus sur Legend dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!