change legend name of ROC

4 visualizaciones (últimos 30 días)
Elysi Cochin
Elysi Cochin el 15 de Sept. de 2022
Comentada: Elysi Cochin el 17 de Sept. de 2022
How to change the legend name (class1, class2, ...) of ROC when using
plotroc(Ts,Y)

Respuesta aceptada

KSSV
KSSV el 15 de Sept. de 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 comentario
Elysi Cochin
Elysi Cochin el 17 de Sept. de 2022
hLegend.String = {'One' 'Two' 'Three'}

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by