ismodule

Checks if a module is loaded.

Syntax

  • state = ismodule(module_short_name)

Input argument

  • module_short_name - a string: short module's name to test.

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

Author

Allan CORNET

Last updated