ismodule

Checks if a module is loaded.

Syntax

  • state = ismodule(module_short_name)
  • state = ismodule(module_short_name, 'isprotected')

Input argument

  • module_short_name - a string: short module's name to test.
  • 'isprotected' - check module isprotected (ie. internal module).

Output argument

  • state - a logical.

Description

ismodule returns true if module is loaded otherwise false.

Example

ismodule('core')
ismodule('mymodule')

See also

requiremodule, getmodules.

History

VersionDescription
1.0.0initial version
1.11.0'isprotected' second argument.

Author

Allan CORNET