| << clear | Memory manager functions | isglobal >> |
| global variable_name |
| global(variable_name) |
| global variable_name1 ... variable_nameN |
a string: valid variable name.
global make variable in global assign value to a variable in a specified variables scope.
function myfun()
global y;
y = 1;
end
myfun()
who
global y
who
disp(y)
who
clear global y
disp(y)
| Version | Description |
|---|---|
| 1.0.0 | initial version |
Allan CORNET