exist
Check the existence of the obejct of a given name in workspace or path.
type=exist(name)
Inputs
name A string.
Outputs
type An integer depending upon the type of the object found with the name name. Its values are:
  • 1 if there is a variable named name in the workspace which is not a builtin function.
  • 2 if there is a file names name in one of the directories defined by MATPATH .
  • 5 if there is a builtin function named name .
  • 0 if none of the preceding conditions is satisfied.