X = [64,128,256,512,1024];
Y = [2.5,5.6,7.2,8.9,10.4];
plot(X,Y,'k-o','linewidth',2,'markersize',4);
ylabel('时间/s','fontname','标楷体','fontweight','bold','fontsize',12);
xlabel('位数','fontname','标楷体','fontweight','bold','fontsize',12);
set(gca,'xtick',[64,128,256,512,1024]);
title('本折线图的标题');
hold on;
Z = [1.2,2.3,3.1,4.5,7.2];
plot(X,Z,'k-o','linewidth',2,'markersize',4);
legend 实验数据Y 实验数据Z
box off
legend('boxoff');
set(legend,'fontname','标楷体');
set(legend,'fontweight','bold');
hold off