尝试以下语句:
open 1.fig%打开一个已保存图片
axis([0,16,-Inf,Inf]);%设置xy轴范围
set(gca,'XTick',0:2:16);%设置x轴间隔
set(findobj('Type','line'),'linewidth',2.5)%设置图片中线型
set(gca,'linewidth',2.5,'Fontsize',18)%设置坐标轴线型和字体大小
xlabel('t/s');ylabel('r error/m')
set(get(gca,'XLabel'),'FontSize',22,'Fontname','Times New Roman'); %设置坐标轴名称字体大小和字形
set(get(gca,'YLabel'),'FontSize',22,'Fontname','Times New Roman');
title('XXXXX','FontSize',22)%设置title字体大小
for i=1:N
h{1}=plot(i,MEANR(i),'m*');
hold on
end
for i=1:N
h{2}=plot(i,MEANR(i),'r*');%为了后面legend方便
hold on
end
T=legend([h{1},h{2},h{3}],'A','B','C');
set(T,'FontName','宋体','FontSize',16)%设置Legend字体等
set(findobj('Type','line'),'MarkerSize',12)%改变MARKER的大小等参数
set(findobj('Type','legend'),'FontName','宋体','FontSize',18)%改变已有legend的字体等