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.

 采纳的回答

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");

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by