坐标轴设置
//设置坐标轴的数字大小,包括legend文字大小:
set(gca,'FontSize',18);
//xy坐标轴范围和精度
set(gca,'xlim',[1,81],'xtick',[1:10:81]);
set(gca,'ylim',[0,1],'ytick',[0:0.1:1]);
//xy轴内容和字体大小
xlabel('Measuring point','FontSize',25);
ylabel('Magnetic field value/nT','FontSize',25);
plot绘图线型
plot(x1,'r');
plot(x2,'b');
plot(x3,'g');
//设置曲线名称
legend("induced field","W-SA-WOA","GA","WOA");