state = isglobal(variable_name)
| Parameter | Description |
|---|---|
| variable_name | a string: variable name. |
| Parameter | Description |
|---|---|
| state | a logical: true if variable is global. |
isglobal returns true if variable_name has been declared as global variable and false otherwise.
y = 3;
isglobal y
global b
b = 3
isglobal b
clear global b
isglobal b
| Version | Description |
|---|---|
| 1.0.0 | initial version |