从matlab导入fig图片数据并设定输出大小
从fig图片导出原始数据:
lh = findall(gca, 'type', 'line');
>> xc = get(lh, 'xdata');
>> yc = get(lh, 'ydata');
>> x1=xc{1};
>> y1=yc{1};
>> x2=xc{2};
>> y2=yc{2};
可能要执行两遍才成功
设置坐标轴标题和文字大小:
>> xlabel('Acknowledged Probe Packet Index','FontSize',16)
>> ylabel('Inter-packet Gaps (us)','FontSize',16);
>> set(gca,'FontSize',16)
打印成论文大小:
>> set(gcf,'PaperUnits','points')
>> set(gcf,'PaperSize',[680,480])
>> set(gcf,'PaperPositionMode','manual')
>> set(gcf,'PaperPosition',[0 0 680 480])
>> print(gcf,'-dpdf','try.pdf')
>> print(gcf,'-deps2','try.eps')
补充:综合编程 , 其他综合 ,