External Interfaces Previous page   Next Page

Calling Java from MATLAB


Using Java from MATLAB: An Overview
How you can benefit from using the MATLAB Java interface
Bringing Java Classes and Methods into MATLAB
Using Java built-in, third-party, or your own classes
Creating and Using Java Objects
Constructing and working with Java objects
Invoking Methods on Java Objects
Calling syntax, static methods, querying MATLAB about methods
Working with Java Arrays
How MATLAB represents Java arrays and how to work with them
Passing Data to a Java Method
How to pass MATLAB data types into Java
Handling Data Returned from a Java Method
How to handle data types returned by Java
Introduction to Programming Examples
Introduction and links to sample programs that use the MATLAB interface to Java
Example - Reading a URL
Open a connection to a Web site and read text from the site using a buffered stream reader
Example - Finding an Internet Protocol Address
Call methods on an InetAddress object to get hostname and IP address information
Example - Communicating Through a Serial Port
Create a SerialPort object and configure the port using methods provided by that class
Example - Creating and Using a Phone Book
Create a phone book using a data dictionary that operates using key/value pairs in a hash table


Previous page  Masking Floating-Point Exceptions Using Java from MATLAB: An Overview Next page

© 1994-2005 The MathWorks, Inc.