[Master Index] [Index for /tools/hpmatlab/toolbox/matlab/lang]

global

(/tools/hpmatlab/toolbox/matlab/lang/global.m)


Help text

GLOBAL	Define global variables.
 	GLOBAL X Y Z defines X, Y, and Z as global in scope.

	Ordinarily, each MATLAB function, defined by an M-file, has its
	own local variables, which are separate from those of other functions,
	and from those of the base workspace and non-function scripts.
	However, if several functions, and possibly the base workspace,
	all declare a particular name as GLOBAL, then they all share
	a single copy of that variable.  Any assignment to that variable,
	in any function, is available to all the other functions declaring
	it GLOBAL.

	Stylistically, global variables often have long names with all
	capital letters, but this is not required.

	For an example, see the functions TIC and TOC.

	See also ISGLOBAL, CLEAR, WHO.

Cross-Reference Information

This is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON