Effacer les filtres
Effacer les filtres

Execute script from command line to existing MATLAB instance

7 vues (au cours des 30 derniers jours)
Marco Pasquali
Marco Pasquali le 6 Avr 2018
Commenté : Marco Pasquali le 10 Avr 2018
I know I can execute a script from my OS command line with matlab -r "my_file", eventually using -nodesktop to have the output printed in the same window. The problem is that this operation creates a new MATLAB instance to execute the script.
My question is: is it possible to have the script executed in an already open MATLAB instance?

Réponse acceptée

Walter Roberson
Walter Roberson le 6 Avr 2018
"is it possible to have the script executed in an already open MATLAB instance?"
No.
In some cases needs related to this can be met by using the MATLAB API; see https://www.mathworks.com/help/matlab/programming-interfaces-for-external-languages.html
  1 commentaire
Marco Pasquali
Marco Pasquali le 10 Avr 2018
I get it. I'll see what i can do with the API, thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Manage Products dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by