matlab的legend()用法

clc;clear;close all;
x=0:0.1:2*pi();
figure(1);hold on;plot(x,sin(x),'b.',x,cos(x),'r+');
legend('sin','cos');%这样可以把"."标识为'sin',把"+"标识为"cos"

 

posted on 2020-04-12 18:11  一杯明月  阅读(5870)  评论(0编辑  收藏  举报