Combining the strengths of the Java programming language and The Mathworks’ Matlab offers interesting new possibilities for application development. Java and its J2EE development environment are well established today as to provide solutions for dynamic Web services, large-scale distributed systems, and other network-centric applications. Matlab is a technical computing environment with a high-level programming language. Due to its ease of use and its strong graphics capabilities, it has become popular across many engineering disciplines. Matlab includes an interface to Java. It allows Matlab to access Java (you may call Java classes from Matlab), but not vice versa. This introductory article presents two alternative solutions on how to interface Matlab with Java, one based on the Java Runtime class, the other one based on the Java Native Interface and Matlab’s C Engine library. With the proposed strategies, a Java-based system can easily start a new Matlab session and communicate with it, thus employ Matlab as the computational engine. Advantages and disadvantages of each approach are presented.
[1]
Monica Pawlan,et al.
Advanced Programming for the Java 2 Platform
,
2000
.
[2]
Barbara I. Wohlmuth,et al.
Mortar Finite Elements for Interface Problems
,
2004,
Computing.
[3]
Duane C. Hanselman,et al.
Mastering MATLAB 5: A Comprehensive Tutorial and Reference
,
1995
.
[4]
Mary Campione,et al.
The Java Tutorial Continued: The Rest of the JDK
,
1998
.
[5]
James Demmel,et al.
LAPACK Users' Guide, Third Edition
,
1999,
Software, Environments and Tools.
[6]
Michael Hanss,et al.
On the reliability of the influence measure in the transformation method of fuzzy arithmetic
,
2004,
Fuzzy Sets Syst..