MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
Property Description JSON Data Type
of Value
inputs List of function input arguments. MATLAB uses
this property for code suggestions and
completions.

Array of argument
objects

outputs List of function output arguments. MATLAB does
not currently use this property for code
suggestions and completions.

Array of argument
objects

platforms List of platforms that support the function.
MATLAB does not present custom code
suggestions and completions if the platform does
not support the function.

The default is all platforms. Elements of the list
must match an archstr returned from the
computer function. The list can be inclusive or
exclusive, but not both. Example values are
"win64,maci64" or "-win64,-maci64".

String of comma-
separated values

Argument Objects


Argument objects define the information for each of the input and output arguments.


{
"functionName1":
{
"inputs":
[
{"name":"in1", "kind":"required", "type":["numeric"]},
{"name":"in2", "kind":"required", "type":["numeric","integer","scalar"]}
]
}
}


The order that the inputs appear in the JSON file is significant. For example, in a call to
the functionName1 function, in1 must appear before in2.


Each argument object can include the following properties.


Customize Code Suggestions and Completions
Free download pdf