gpf.m

来自「信号实验常用的simulink模型和mfile,可直接在matlan下运行。」· M 代码 · 共 19 行

M
19
字号
function h = gpf()
%GPF    Get handle of the figure that is next to the top of the stack.
%	H = GPF returns the next-to-the-top figure (penultimate
%	figure) in the root's figure stack.
%
%	If there is only one figure open, GPF will return its
%	handle. If there are currently no figures open, GPF will 
%	will open a figure and return its handle.

%	Copyright (c) 1984-94 by the MathWorks, Inc.

hList = get(0,'Children');

if length(hList) > 1,
    h = hList(2);
else
    h=gcf;
end

⌨️ 快捷键说明

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