import namespace.name
import namespace.className.staticMethodName
import namespace.*
import(namespace_name)
L = import()
| Parameter | Description |
|---|---|
| namespace.name | a dotted import name. |
| namespace.* | a namespace wildcard import. |
| namespace_name | a string scalar or character vector containing an import name. |
| Parameter | Description |
|---|---|
| L | a cell array of character vectors: current imports in insertion order. |
import adds package functions, package class constructors, package static methods, or namespace wildcard imports to the current scope.
Duplicate import names are ignored. Imports declared in a function or script apply to the whole function or script body. In the base scope, imports remain active until clear import.
import nelson.classdefpkg.Options
L = import()
clear import
| Version | Description |
|---|---|
| 2.0.0 | initial version |