change legend name of ROC

1 visualizzazione (ultimi 30 giorni)
Elysi Cochin
Elysi Cochin il 15 Set 2022
Commentato: Elysi Cochin il 17 Set 2022
How to change the legend name (class1, class2, ...) of ROC when using
plotroc(Ts,Y)

Risposta accettata

KSSV
KSSV il 15 Set 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

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by