javaArray
ConstructJavaarray object
Description
constructs an emptyJava®array objectfor objects of the specifiedObjArr
= javaArray(PackageName.ClassName
,x1,...,xN
)PackageName.ClassName
class. The array created byjavaArray
is equivalent to the array created by the following Java code.
A = new PackageName.ClassName[x1]...[xN];
Examples
Input Arguments
Output Arguments
More About
Tips
To create an array of primitive Java types, create an array of the equivalent MATLAB type. For more information, seeMATLAB Type to Java Type Mapping.