External Interfaces/API | ![]() ![]() |
This chapter describes how to use the MATLAB interface to Java classes and objects. This MATLAB capability enables you to conveniently bring Java classes into the MATLAB environment, to construct objects from those classes, to call methods on the Java objects, and to save Java objects for later reloading -- all accomplished with MATLAB functions and commands.
The following list summarizes the contents of this chapter:
Using Java from MATLAB: An Overview
Java Interface Is Integral to MATLAB
Every installation of MATLAB includes a Java Virtual Machine (JVM), so that you can use the Java interpreter via MATLAB commands, and you can create and run programs that create and access Java objects. For information on MATLAB installation, see the MATLAB installation documentation for your platform.
Benefits of the MATLAB Java Interface
The MATLAB Java interface enables you to:
URL
class provides convenient access to resources on the internetWho Should Use the MATLAB Java Interface
The MATLAB Java interface is intended for all MATLAB users who want to take advantage of the special capabilities of the Java programming language. For example:
To Learn More About Java Programming
For a complete description of the Java language and for guidance in object-oriented software design and programming, you'll need to consult outside resources. For example, these recently published books may be helpful:
Another place to find information is the JavaSoft Web site.
http://www.javasoft.com
For other suggestions on object-oriented programming resources, see:
Platform Support for the Java Virtual Machine
To find out which version of the Java Virtual Machine (JVM) is being used by MATLAB on your platform, type the following at the MATLAB prompt:
version -java
![]() | Compiling and Linking on Windows | Bringing Java Classes into MATLAB | ![]() |