User`s guide
6 Reference Infor mation for Java
by the
varargin
argument
Object in2,
...,
Object
InN,
Object varargin
)
Details about the a rguments for these samples of standard signatures are
shown in the following table.
Argument
Description
Details About this Argument
numArgsOut
Number of
outputs
An integer indicating the number of
outputs you want the method to return.
To return no arguments, omit this
argument.
The value of
numArgsOut must be less
than or equal to the MATLAB function
nargout.
The
numArgsOut argument must always
be the first argu m ent in the list.
In1, In2,
...InN
Require d input
arguments
All arguments that follow numArg sOut
in the argument list are inputs to the
method being called.
Specify all required inputs first. Each
required in p ut must be of class
MWArray
or any class derived from MWArray.
varargin
Optional inputs You can also specify optional inputs if
your M -code uses the
varargin input:
list the optional inputs, or put them
in an
Object[] argument, placing the
array last in the argument list.
Out1, Out2,
...OutN
Output
arguments
With the standard calling interface, all
output arguments are returned as an
array of
MWArrays.
6-16