metafunction
Syntax
Description
returns a obj = metafunction(identifier)matlab.metadata.Function or matlab.metadata.Method
object that corresponds to the identifier.
Functions and class constructors— The name of the function or constructor. For example,
obj = metafunction("myFunction").Class methods — The name of the defining class and the name of the method separated by
/. For example,obj = metafunction("MyClass/myMethod").Local functions — The name of the main function file and the name of the local function separated by
>. For example,obj = metafunction("myFunction>myLocalFunction").
specifies a cell array of argument values for the function or method.
obj = metafunction(identifier,Arguments={val1,...,valN})obj describes the function or method that MATLAB® would call given the same input argument values.
specifies a string array containing one or more argument types for the function or method.
obj = metafunction(identifier,ArgumentTypes=["type1",...,"typeN"])obj describes the function or method that MATLAB would call given the same input argument types.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2026a