主要内容

namespaceFunctions

Functions defined in specified namespace

Since R2026a

Description

fObj = namespaceFunctions(namesp) returns an array of matlab.metadata.Function objects that describe the functions defined in the specified namespace. namespaceFunctions only returns functions that are visible in the current context.

example

Examples

collapse all

Get an array of matlab.metadata.Function objects representing the functions defined in the matlab.uitest namespace.

f = namespaceFunctions("matlab.uitest")
f = 

  Function with properties:

                   Name: 'unlock'
            Description: 'Unlock figure locked by app testing framework'
    DetailedDescription: '    This MATLAB function unlocks a figure that the app testing framework...'
               FullPath: 'C:\matlab\..\unlock.m'
          NamespaceName: 'matlab.uitest'
              Signature: [1×1 matlab.metadata.CallSignature]

Input Arguments

collapse all

Namespace, specified as a string or character vector.

Output Arguments

collapse all

Metadata for functions in the specified namespace, specified as a matlab.metadata.Function array.

Version History

Introduced in R2026a