You can access existing Java classes or create your own
to use in the MATLAB workspace. For example, use built-in class
packages, such as
java.util, which are included
in the Java language. See your Java language documentation
for descriptions of these packages. You can also access classes defined
.class files, packages, or Java Archive
||Construct Java array object|
||Add package or class to current import list|
||Return Java class path or specify dynamic path|
||Add entries to dynamic Java class path|
||Remove entries from dynamic Java class path|
||Error message based on Java feature support|
||Determine if input is Java object|
||Determine if Java feature is available|
||Capture error information for Java exception|
How to call a Java object method in MATLAB.
This example shows how to call a built-in Java
This example shows how to call a class method in a Java Archive (JAR) file.
This example shows how to call a method in your own Java class.
This example opens a connection to a website specified by a URL to read text from a file at that site.
This example returns the name or address of an IP host.
This example uses Java classes
java.util.Hashtable to create and modify a
list of names and numbers.
How you can benefit from using the MATLAB Java interface.
How to use Java built-in, third party, or your own classes in MATLAB.
Construct and work with Java objects.
Calling syntax, static methods, and getting information about methods.
How MATLAB represents Java arrays and how to work with them.
How to pass MATLAB types to Java methods.
How to handle types returned by Java methods.
How to adjust the Java heap size.