usefig.m
来自「% % set some variables in the workspace」· M 代码 · 共 22 行
M
22 行
%USEFIG reuse a named figure or create a new figure%% usefig('Foo')%% make figure 'Foo' the current figure, if it doesn't exist create it.%% h = usefig('Foo') as above, but returns the figure handlefunction H = usefig(name) h = findobj('Name', name); if isempty(h), h = figure; set(h, 'Name', name); else figure(h); end if nargout > 0, H = h; end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?