fig2eps.m

来自「支持向量机工具箱」· M 代码 · 共 21 行

M
21
字号
function []=fig2eps(fig)
%
% FIG2EPS Exports the figure to a file in the EPS format.
%   Before saving, the standard save window is invoked
%   to obtain output file name.
%
% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac
% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz
% Written Vojtech Franc (diploma thesis) 18.12.1999
% Modifications

[filename, pathname] = uiputfile('*.eps', 'Export Figure to EPS');

if filename~=0,   % 0 if the user press Cancel button

   file=strcat(pathname,filename);
   eval(sprintf('print -depsc -noui -f%f %s',fig,file));
end

% that`s all

⌨️ 快捷键说明

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