Contents Previous Next Subchapters

Determine if an Identifier is Defined in Current Environment
Syntax defined(id)
See Also path , exists , mlmode exist

Description
Determines the meaning of the identifier specified by id in the current environment where id is a character row vector. The return value is a character row vector with the following meaning
Value Meaning
"undefined" not defined and there is no corresponding automatic include file
"dll" dll function
"label" code transfer label
"constant" constant
"variable" variable
"function" function defined by source code
"intrinsic" intrinsic function
"file" not defined but there is a corresponding automatic include file

Example
If you enter
     clear
     function f(x) begin
          return defined("x")
     end
     f(1)
O-Matrix will respond
     variable