Legend for plotroc precompiled?
Afficher commentaires plus anciens
Hi, I'm asking how to change the legend of the plotroc that I can get graphic of, from the code I export from nntraintool (nprtool).
In fact, in this plot it represents "class1" and "class2", but I'd want to subscribe this with "Yes", "No", because I'm testing a Neurale Pattern Recognition Network to verify if there is or not a subject behind a wall.
thank you anyway!!
Réponses (1)
Kritika Bansal
le 18 Juil 2019
Modifié(e) : Kritika Bansal
le 19 Juil 2019
1 vote
Hi,
As per my understanding, you are trying to change the legend of the roc curves which are being plotted using plotroc() function. You wish to change the legend to actual name of the classes instead of the default ‘class 1’, ‘class 2’, etc.
You can change the legend of the plot by following the below steps:
- Get current axes:
axesUserData = get(gca, ‘userdata’);
2. Modify the legend:
legend(axesUserData.lines, ‘Yes’, ‘No’);
1 commentaire
Walter Roberson
le 18 Juil 2019
Probably needs to be legend() instead of Legend()
Catégories
En savoir plus sur Pattern Recognition 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!