필터 지우기
필터 지우기

change legend name of ROC

조회 수: 6 (최근 30일)
Elysi Cochin
Elysi Cochin 2022년 9월 15일
댓글: Elysi Cochin 2022년 9월 17일
How to change the legend name (class1, class2, ...) of ROC when using
plotroc(Ts,Y)

채택된 답변

KSSV
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
  댓글 수: 1
Elysi Cochin
Elysi Cochin 2022년 9월 17일
hLegend.String = {'One' 'Two' 'Three'}

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by