Matlab:作图模板

发布时间 2023-11-03 19:44:08作者: 哆啦美
plot(x, y, 'b-', 'LineWidth',1.5);
set(gca,'FontSize',10,'fontname','Times New Roman');
xlabel('\fontname{宋体}标题/\fontname{Times New Roman}单位') 
ylabel('\fontname{宋体}标题/\fontname{Times New Roman}单位') 
xlim([0 10]);
ylim([0 10]);
set(gca,'YTick',[0 0]) ;
set(gca,'YTickLabel',{'0','0'}) ;
legend('标题1','标题2','location','SouthEast','Box','off','fontname','宋体')