fig2jpg.m

来自「各种SVM分类算法」· M 代码 · 共 34 行

M
34
字号
function fig2jpg(fig)
% FIG2EPS Exports figure to EPS file.
% 
% Synopsis:
%  fig2eps(fig)
%
% Description:
%  This function invokes the standard save dialog to ask
%  the user about the name to which the given figure should
%  be exported in the Encapsulated PostScript (EPS) format.
%
% Input:
%  fig [1x1] Handle of a figure.
%

% About: Statistical Pattern Recognition Toolbox
% (C) 1999-2003, Written by Vojtech Franc and Vaclav Hlavac
% <a href="http://www.cvut.cz">Czech Technical University Prague</a>
% <a href="http://www.feld.cvut.cz">Faculty of Electrical Engineering</a>
% <a href="http://cmp.felk.cvut.cz">Center for Machine Perception</a>

% Modifications:
% 20-Feb-2003, VF

[filename, pathname] = uiputfile('*.jpg', '保存图片为jpg格式');

if filename~=0,    

   file=strcat(pathname,filename);
   print( gcf, '-djpeg', file);
end

return;

⌨️ 快捷键说明

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