FUNCTION REFERENCE
global
Declare variables shared by function workspaces.
Declare variables shared by function workspaces.
Syntax
global name1 name2New globals are empty; clear global name removes a shared variable.
Example
global shared; shared=3; shared % 3Differences from MATLAB: Global storage is bounded by the engine's workspace limits.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.