change legend name of ROC

4 Ansichten (letzte 30 Tage)
Elysi Cochin
Elysi Cochin am 15 Sep. 2022
Kommentiert: Elysi Cochin am 17 Sep. 2022
How to change the legend name (class1, class2, ...) of ROC when using
plotroc(Ts,Y)

Akzeptierte Antwort

KSSV
KSSV am 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 Kommentar
Elysi Cochin
Elysi Cochin am 17 Sep. 2022
hLegend.String = {'One' 'Two' 'Three'}

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by