mmgcf.m

来自「一套从入门到精通的Matlab学习教材」· M 代码 · 共 19 行

M
19
字号
function Hf=mmgcf%MMGCF Get Current Figure if it Exists.% MMGCF returns the handle of the current figure if it exists.% If no current figure exists, MMGCF returns an empty handle.%% Note that the function GCF is different. It creates a figure% and returns its handle if it does not exist.% D.C. Hanselman, University of Maine, Orono, ME, 04469% 3/10/95% Copyright (c) 1996 by Prentice Hall, Inc.Hf=get(0,'Children');if isempty(Hf)	returnelse	Hf=get(0,'CurrentFigure');end

⌨️ 快捷键说明

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