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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.