How can I start MATLAB using my JAVA program in Linux?

I am working in Linux and would like to start MATLAB from my Java program using the Runtime class.

 Akzeptierte Antwort

In order to programmatically start MATLAB from Java, pass the MATLAB startup script to a terminal window. For example,
rt = Runtime.exec("xterm -e matlab");

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by