matlab 關閉指定圖例


 

x = linspace(0,pi);
y1 = cos(x);
plot(x,y1);

hold on
y2 = cos(2*x);
plot(x,y2,'HandleVisibility','off');

y3 = cos(3*x);
plot(x,y3);
hold off
legend('First','Third')

https://blog.csdn.net/happyangry/article/details/88290687


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM