Function Introspection and Metadata
Use introspection to get detailed information about functions
Since R2026a
Since R2026a
You can use introspection to programmatically get information about a
function. Calling metafunction on the name of a function returns an instance
of matlab.metadata.Function, which provides access to help text,
the full path and namespace of the function, and detailed information about
the input and output arguments. For an introduction on how to access
function metadata, see Access Function Metadata.
Functions
metafunction | Create metadata object that describes function or method |
Classes
matlab.metadata.Argument | Describe argument of function or method |
matlab.metadata.ArgumentIdentifier | Name and group name of function argument |
matlab.metadata.ArgumentValidation | Describe validation for function argument |
matlab.metadata.ArgumentValidator | Describe argument validation functions applied to function arguments |
matlab.metadata.CallSignature | Describe inputs and outputs of function or method |
matlab.metadata.DefaultArgumentValue | Describe default value of function or method argument |
matlab.metadata.Function | Describe function and its signature |
Topics
- Access Function Metadata
Use function metadata to access information about functions programmatically.
- Check Function Compatibility Using Metadata
Use function metadata to test if the output of one function is compatible with the input of a second function.