Have Matlab run in Background from command line

4 Ansichten (letzte 30 Tage)
RobsnC
RobsnC am 16 Mär. 2017
Kommentiert: RobsnC am 16 Mär. 2017
Hey,
I'm running numerous matlab scripts from the command line within a jython pipeline. My problem is that matlab has to be opened seperately for every script, is there a way to have matlab running in the background and stay open? This would boost efficieny.
cheers, Robin

Akzeptierte Antwort

ES
ES am 16 Mär. 2017
You can look for existing instance of MATLAB and use it for running the new code. I would do something like this [python].
import win32com.client
oMatlabInstance = win32com.client.GetActiveObject("matlab.Application.7.13")#Checking if MATLAB R2011B is running
oMatlabInstance.execute(new script name here)
  1 Kommentar
RobsnC
RobsnC am 16 Mär. 2017
We are working on OSX, your idea brought us to the solution: Matlab Engine. Thanks :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by