⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 printmif.m

📁 这是一个新的用于图像处理的工具箱
💻 M
字号:
function printmif(file,size,font,fig)%printmif(file,size,font,fig) Print graph to an Adobe Illustrator file % and then use ai2mif to convert it to FrameMaker MIF format.% ai2mif is a slightly modified version of the function of the same name% provided by Deron Jackson <djackson@mit.edu>.path = which(mfilename);ai2mifpath = [ path(1:max(find(path==filesep))) 'ai2mif '];% Handle the input argumentsparameters = {'file' 'size' 'font' 'fig'};defaults = {'matlab' [] [] gcf };for i=1:length(defaults)    parameter = char(parameters(i));    if i>nargin | ( eval(['isnumeric(' parameter ') '])  &  ...     eval(['any(isnan(' parameter ')) | isempty(' parameter ') ']) )        eval([parameter '=defaults{i};'])    endendif ~isempty(font)    fontsize = str2num(font(font<59));	% Numerical portion    fontname = font(font>58);		% Alphabetical portion    children = get(fig,'Children');    for i = 1:length(children)    	if isfield(children(i),'FontName');	    set(children(i), 'FontName',fontname, 'FontSize',fontsize);	end    endendif ~isempty(size)    set(fig,'PaperUnits','inches','PaperPosition', [0.5 0.5 0.5+size]);end% eval( ['print -dill -f' num2str(fig) ' ' file '.ai'] );[path name] = fileparts(file);eval( ['print -dill -painters -f' num2str(fig) ' ' name '.ai'] );ai2mif(name);                           % Execute AI2MIFdelete([name '.ai']);                   % Delete the AI fileif ~isempty(path)    MIFfile = [fullfile(cd,file) '.mif'];    if exist(MIFfile,'file')	delete(MIFfile);                   % Delete the old MIF file if it exists    end    copyfile([name '.mif'],[fullfile(cd,file) '.mif']);    delete([name '.mif']);                 % Delete the temporary MIF fileend

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -