Contents Previous Next Subchapters

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

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

If you enter
     function f(x) begin
          return defined("x")
O-Matrix will respond