value = acquirevar(scope, variable_name)
| Parameter | Description |
|---|---|
| scope | a string: 'global', 'base', 'caller', 'local'. |
| variable_name | a string: the name of symbol to search. |
| Parameter | Description |
|---|---|
| value | value of the variable searched. |
acquirevar search a symbol in a specific scope and copy the value in current scope.
Y = 'variable in base scope';
function myfun()
disp(acquirevar('base', 'Y')
end
myfun()
| Version | Description |
|---|---|
| 1.0.0 | initial version |