フィルターのクリア

How to Hide Legend of Plot 2?

2 ビュー (過去 30 日間)
Matty
Matty 2022 年 10 月 14 日
回答済み: Star Strider 2022 年 10 月 14 日
zeys = n;
text = ['Run ',num2str(zeys)];
plot(x,y,'DisplayName',text);
plot(xmax,ymax,'^r')
legend show

回答 (1 件)

Star Strider
Star Strider 2022 年 10 月 14 日
Perhaps —
zeys = n;
text = ['Run ',num2str(zeys)];
hp1 = plot(x,y,'DisplayName',text);
hp2 = plot(xmax,ymax,'^r');
legend(hp1, 'Location','best)
.
.

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by