change legend name of ROC

4 vues (au cours des 30 derniers jours)
Elysi Cochin
Elysi Cochin le 15 Sep 2022
Commenté : Elysi Cochin le 17 Sep 2022
How to change the legend name (class1, class2, ...) of ROC when using
plotroc(Ts,Y)

Réponse acceptée

KSSV
KSSV le 15 Sep 2022
plotroc(Ts,Y)
hLegend = findobj(gcf, 'Type', 'Legend');
%get text
hLegend.String
% Change
hLegend.String {'One' 'Two' 'Three'} % put your strings here; I assume three are there
  1 commentaire
Elysi Cochin
Elysi Cochin le 17 Sep 2022
hLegend.String = {'One' 'Two' 'Three'}

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by