採用された回答

KSSV
KSSV 2022 年 9 月 15 日

1 投票

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 件)

タグ

質問済み:

2022 年 9 月 15 日

コメント済み:

2022 年 9 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by