Main Content

Function Introspection and Metadata

Use introspection to get detailed information about functions
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

metafunctionCreate metadata object that describes function or method

Classes

matlab.metadata.ArgumentDescribe argument of function or method
matlab.metadata.ArgumentIdentifierName and group name of function argument
matlab.metadata.ArgumentValidationDescribe validation for function argument
matlab.metadata.ArgumentValidatorDescribe argument validation functions applied to function arguments
matlab.metadata.CallSignatureDescribe inputs and outputs of function or method
matlab.metadata.DefaultArgumentValueDescribe default value of function or method argument
matlab.metadata.FunctionDescribe function and its signature

Topics