How to Hide Legend of Plot 2?
Show older comments
zeys = n;
text = ['Run ',num2str(zeys)];
plot(x,y,'DisplayName',text);
plot(xmax,ymax,'^r')
legend show
Answers (1)
Star Strider
on 14 Oct 2022
0 votes
Perhaps —
zeys = n;
text = ['Run ',num2str(zeys)];
hp1 = plot(x,y,'DisplayName',text);
hp2 = plot(xmax,ymax,'^r');
legend(hp1, 'Location','best)
.
.
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!