format major#.minor#.patch#, with each number specified as a nonnegative integer.
The current schema version is 1.0.0. If the file does not specify a schema version,
MATLAB assumes version 1.0.0.
If functionSignatures.json contains syntax errors, MATLAB displays an error
message in the Command Window when it reads the file. Use the
validateFunctionSignaturesJSON function to validate the
functionSignatures.json file against the JSON schema and the MATLAB function
signature schema.
Function Objects
To define information for a function, create a property that is the same as the function
name. Its value is a signature object on page 30-16.
{
"functionName1": { signatureObj1 },
"functionName2": { signatureObj2 }
}
To define information for a class method or package function, use the full name of the
function or method. Example properties are "MyClass.myMethod" or
"myPackage.myFunction". You can define multiple function signatures for the same
function by defining multiple function objects with the same property (function name). For
more information, see “Multiple Signatures” on page 30-24.
Signature Objects
A signature object defines the input and output arguments and supported platforms for
the function. The value of each property, except for the platforms property, is an array
of argument objects on page 30-17.
{
"functionName1":
{
"inputs": [ argumentObj1, argumentObj2 ]
}
}
Each signature can include the following properties.
30 Custom Help and Documentation