x = linspace(0,pi); p1 = plot(x,sin(x),'b'); hold on p2 = plot(x,cos(x),'r'); legend([p2,p1],'cos(x)','sin(x)'). 复制代码. Made with ❤️ in Chengdu.
確定! 回上一頁