isappdata.m

来自「matlab6.5」· M 代码 · 共 15 行

M
15
字号
function result = isappdata(handle, name)
%ISAPPDATA True if application-defined data exists.
%  ISAPPDATA(H, NAME) returns 1 if application-defined data with
%  the specified NAME exists on the object specified by handle H,
%  and returns 0 otherwise.
%
%  See also SETAPPDATA, GETAPPDATA, RMAPPDATA.

%  Damian T. Packer, May 1998
%  Copyright 1984-2002 The MathWorks, Inc. 
%  $Revision: 1.8 $  $Date: 2002/04/08 22:41:30 $

if length(handle) ~= 1, error('H must be a single handle.'); end
result = isfield(get(handle, 'ApplicationData'), name);

⌨️ 快捷键说明

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