change legend name of ROC
1 view (last 30 days)
Show older comments
How to change the legend name (class1, class2, ...) of ROC when using
plotroc(Ts,Y)
0 Comments
Accepted Answer
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)
See Also
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!