Skip to content

isglobal

miscellaneous · scripts/miscellaneous/isglobal.m

ISGLOBAL  True if NAME is a global variable (Octave name).
  TF = ISGLOBAL(NAME) wraps __isglobal__. MATLAB has no public
  isglobal; portable code can track globals with who('global') or
  avoid globals. Unmarked MATLAB-mode scripts that never call this
  name are unaffected.

  See also WHO, EXIST, ISVARNAME.