Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.5555/2151054.2151065acmotherconferencesArticle/Chapter ViewAbstractPublication PagessimutoolsConference Proceedingsconference-collections
research-article

An asynchronous Java interface to MATLAB

Published: 21 March 2011 Publication History

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.

References

[1]
B. Goetz, T. Peierls, J. Bloch, J. Bowbeer, D. Holmes, and D. Lea. Java Concurrency in Practice. Addison-Wesley Professional, 2006.
[2]
A. Klimke. How to access MATLAB from Java. Technical report, University of Stuttgart, 2003.
[3]
M. Krätzig. JStatCom. www.jstatcom.com, 2008.
[4]
S. Müller. JMatLink connect MATLAB and Java. http://jmatlink.sourceforge.net, 2005.
[5]
A. Naderlinger, W. Pree, and J. Templ. Visual modeling of real-time behavior. Symposium on Automotive/Avionics Systems Engineering, 2009.
[6]
preeTEC. www.preeTEC.com, 2010.
[7]
G. Stieglbauer. Model-based Development of Embedded Control Software with TDL and Simulink. PhD thesis, University of Salzburg, 2007.
[8]
Sun Microsystems. Java Native Interface 6.0 specification. http://java.sun.com/javase/6/docs/technotes/guides/jni, 2006.
[9]
The MathWorks. www.mathworks.com, 2009.
[10]
TinyOS Alliance. TinyOS. www.tinyos.net, 2009.
[11]
K. Whitehouse. MatlabControl. www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html, 2009.

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
SIMUTools '11: Proceedings of the 4th International ICST Conference on Simulation Tools and Techniques
March 2011
527 pages
ISBN:9781936968008

Sponsors

  • ICST

In-Cooperation

Publisher

ICST (Institute for Computer Sciences, Social-Informatics and Telecommunications Engineering)

Brussels, Belgium

Publication History

Published: 21 March 2011

Check for updates

Author Tags

  1. Java
  2. MATLAB
  3. asynchronous
  4. interface
  5. simulink

Qualifiers

  • Research-article

Conference

SIMUTools '11
Sponsor:

Acceptance Rates

Overall Acceptance Rate 20 of 73 submissions, 27%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 265
    Total Downloads
  • Downloads (Last 12 months)1
  • Downloads (Last 6 weeks)0
Reflects downloads up to 27 Dec 2024

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media