change legend name of ROC

1 view (last 30 days)
Elysi Cochin
Elysi Cochin on 15 Sep 2022
Commented: Elysi Cochin on 17 Sep 2022
How to change the legend name (class1, class2, ...) of ROC when using
plotroc(Ts,Y)

Accepted Answer

KSSV
KSSV on 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

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!