可以通过设置不同的格式啊,例如,有y1,y2两组数据,我们设置不同的格式来体现不同:
y1=[4.3600 8.7000 13.3400 13.7300 17.7300 19.4500 25.8100 22.8100 20.0000 17.8000];
y2=[4.2100 7.5000 10.6500 11.0300 10.1300 11.4400 20.9400 19.3000 17.3000 15.5000];
x=1:length(y1);
plot(x,y1,'go','LineWidth',2,'MarkerEdgeColor','k','MarkerFaceColor','g','MarkerSize',10)
hold on
plot(x,y2,'cs','LineWidth',2,'MarkerEdgeColor','k','MarkerFaceColor','c','MarkerSize',10)
hold on
axis([0 12 0 32])
grid on
T=legend('1#','2#');
set(T,'Fontsize',12); %设置图标字体大小