6.6. Interface Between Java and Matlab

In this section, we will discuss the interface between Java and Matlab. This interface is made up of a native library using the JNI functions. There is no direct connection between Java and Matlab, but JNI provides a good tool to connect Java and Matlab.

We want to use an example program to illustrate the functionality of the interface between Java and Matlab. To make things simple, we use the example we developed in Section 6.3.2, which is a Java program that creates a random sequence and calls a native library to calculate the maximum, minimum, and mean values for that random sequence in the native domain. The calculated results are returned to the Java domain and displayed in three TextField input fields. ...

Get Applications Interface Programming Using Multiple Languages: A Windows® Programmer's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.