Research Article
An Asynchronous Java Interface to MATLAB
@INPROCEEDINGS{10.4108/icst.simutools.2011.245552, author={Andreas Naderlinger and Josef Templ and Stefan Resmerita and Wolfgang Pree}, title={An Asynchronous Java Interface to MATLAB}, proceedings={4th International ICST Conference on Simulation Tools and Techniques}, publisher={ICST}, proceedings_a={SIMUTOOLS}, year={2012}, month={4}, keywords={MATLAB Simulink Java asynchronous interface}, doi={10.4108/icst.simutools.2011.245552} }
- Andreas Naderlinger
Josef Templ
Stefan Resmerita
Wolfgang Pree
Year: 2012
An Asynchronous Java Interface to MATLAB
SIMUTOOLS
ICST
DOI: 10.4108/icst.simutools.2011.245552
Abstract
MATLAB, an interactive environment for numerical and symbolic computation, supports a number of interfaces to foreign programming languages including Java. However, there is no appropriate support for calling back MATLAB functions from within the Java Virtual Machine integrated with MATLAB. This paper presents such an interface which is based exclusively on documented and portable mechanisms supplied by Java and MATLAB. Our approach is based on asynchronous communication between Java threads and MATLAB and follows the producer/consumer pattern. We also present performance measurements and discuss the impact of an optimization for calling MATLAB functions that return a result value back to Java.
Copyright © 2011–2024 ICST