User`s manual
5 Calling Java from MATLAB
5-62
Introduction to Programming Examples
The following programming examples demonstrate the MATLAB interface to
Java classes and objects:
•“Example – Reading a URL”
•“Example – Finding an Internet Protocol Address”
•“Example – Communicating Through a Serial Port”
•“Example – Creating and Using a Phone Book”
Each example contains the following sections:
•Overview - Describes what the example does and how it uses the Java
interface to accomplish it. Highlighted are the most important Java objects
that are constructed and used in the example code.
•Description - provides a detailed description of all code in the example. For
longer functions, the description is divided into functional sections that focus
on a few statements.
•Running the Example - Shows a sample of the output from execution of the
example code.
The example descriptions concentrate on the Java-related functions. For
information on other MATLAB programming constructs, operators, and
functions used in the examples, see the applicable sections in the MATLAB
documentation.