mmgca.m

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

M
19
字号
function Ha=mmgca%MMGCA Get Current Axes if it Exists.% MMGCA returns the handle of the current axes if it exists.% If no current axes exists, MMGCA returns an empty handle.%% Note that the function GCA is different. It creates a figure% and an axes and returns the axes handle if it does not exist.% B.R. Littlefield, University of Maine, Orono, ME, 04469% 4/11/95% Copyright (c) 1996 by Prentice Hall, Inc.Ha=findobj(0,'Type','axes');if isempty(Ha)	returnelse	Ha = get(get(0,'CurrentFigure'),'CurrentAxes');end

⌨️ 快捷键说明

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