Scilab Function

global - Define global variable

Calling Sequence

global('nam1',...,'namn')
global nam1 ... namn

Parameters

Description

Ordinarily, each Scilab function, has its own local variables and can "read" all variables created in the base workspace or by the calling functions. The global keyword allow to make variables read/write across functions. Any assignment to that variable, in any function, is available to all the other functions declaring it global.

If the global variable doesn't exist the first time you issue the global statement, it will be initialized to the empty matrix.

Examples

See Also