<< global Memory manager functions isvar >>

isglobal


Checks if a variable is global.


Syntax


state = isglobal(variable_name)

Input argument


variable_name

a string: variable name.

Output argument


state

a logical: true if variable is global.

Description


isglobal returns true if variable_name has been declared as global variable and false otherwise.

Example


y = 3;
isglobal y
global b
b = 3
isglobal b
clear global b
isglobal b

See also


clear, who, global.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< global Memory manager functions isvar >>