User`s guide

2 Concepts
How Does MATLAB Builder for Java Handle Data?
To enable Java applications to exchange data with MATLAB methods
they invoke, Java Builder provides an API, which is implemented as the
com.mathworks.toolbox.javabuilder.MWArray package. This package
provides a set of data conversion classes derived from the abstract class,
MWArray. Each class represents a MATLAB data type.
“Understanding the API Data C onversio n Classes” on page 2-4
“Auto m ati c Conversion to M ATLAB Ty pe s” on page 2-5
“Understanding Function Signatures Generated by Java Builder” on page
2-6
“Returning Data from MATLAB to Java” on page 2-7
Understanding the API Data Conversion Classes
When writing y our Java a pplication , you can represent your data using
objects of any of the data conversion classes. Alterna tively, you ca n u s e
standard Java data types and objects.
The data conversion classes are built as a class hierarchy that represents the
major MATLAB array types.
Note This discussion provides conceptual information about the classes.
For usage information, see Chapter 4, “Using MWArray Classes”.
For reference information, see
com.mathworks.toolbox.javabuilder.
This discussion assumes you have a working knowledge of the Java
programming language and the Java Software Development Kit (SDK). This
is not intended to be a discussion on how to program in Java. Refer to the
documentation that came with your Java SDK for general programming
information.
2-4