📄 close_figure.m
字号:
function close_figure(figobject,varargin)%CLOSE_FIGURE Create a close-figure dialogue% CLOSE_FIGURE(FIGOBJECT, FIGNAME) will create a dialogue box asking if% it is ok to close the figure named FIGNAME. If user selects 'YES'% FIGOBJECT is closed.%% Example:% Author(s): Bob L. Sturm, 20030701-03 % Copyright 2003 University of California, Santa Barbara % $Revision: 1.20 $ $Date: 2002/03/28 17:31:26 $ close(figobject) return; if nargin > 1, figname = varargin{1}; selection = questdlg(['Close ' figname '?'],... ['Close ' figname '...'],... 'Yes','No','Yes'); if strcmp(selection,'Yes') close(figobject) end else close(figobject) end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -