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"