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.

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
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