MATLAB Function Reference    

Constructs a Java array



javaArray('package_name.class_name',x1,...,xn) constructs an empty Java array capable of storing objects of Java class, 'class_name'. The dimensions of the array are x1 by ... by xn. You must include the package name when specifying the class.

The array that you create with javaArray is equivalent to the array that you would create with the Java code


The following example constructs and populates a 4-by-5 array of java.lang.Double objects.

See Also
javaObject, javaMethod, class, methodsview, isjava

  j javachk