[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
- ellipap /tools/hpmatlab/toolbox/signal/ellipap.m
- kratio /tools/hpmatlab/toolbox/signal/kratio.m
- menu /tools/hpmatlab/toolbox/matlab/lang/menu.m
- meta /tools/hpmatlab/toolbox/matlab/graphics/meta.m
- moveaxis /tools/hpmatlab/toolbox/matlab/plotxy/moveaxis.m
- saxis /tools/hpmatlab/toolbox/matlab/sounds/saxis.m
- sound /tools/hpmatlab/toolbox/matlab/sounds/sound.m
- tic /tools/hpmatlab/toolbox/matlab/elmat/tic.m
- toc /tools/hpmatlab/toolbox/matlab/elmat/toc.m
- vratio /tools/hpmatlab/toolbox/signal/vratio.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON