MATLAB Function Reference |
Determine if input is global variable
Note
Support for the isglobal function will be removed in a future release of MATLAB. See Remarks below.
|
Syntax
Description
tf = isglobal(A)
returns logical 1
(true
) if A
has been declared to be a global variable in the context from which isglobal
is called, and logical 0
(false
) otherwise.
Remarks
isglobal
is most commonly used in conjunction with conditional global declaration. An alternate approach is to use a pair of variables, one local and one declared global.
If no other workaround is possible, you can replace the command
See Also
isfloat | ishandle |
© 1994-2005 The MathWorks, Inc.