change legend name of ROC
조회 수: 6 (최근 30일)
이전 댓글 표시
How to change the legend name (class1, class2, ...) of ROC when using
plotroc(Ts,Y)
댓글 수: 0
채택된 답변
KSSV
2022년 9월 15일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!