Effacer les filtres
Effacer les filtres

How do I run a windows command line executable under Matlab?

2 vues (au cours des 30 derniers jours)
Charles Rino
Charles Rino le 5 Nov 2016
Commenté : Charles Rino le 5 Nov 2016
I have an executable of the form main.exe p1 p2 p3 p4 p5 p6 that will run in a command window. It generates two files. It would be very convenient to set up runs and collect the output under Matlab.

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Nov 2016
result = system('main.exe p1 p2 p3 p4 p5 p6');
You might also see dos() used. On Windows system, dos() and system() are the same. system() is better defined as to what it does on non-Windows systems.

Plus de réponses (0)

Catégories

En savoir plus sur Application Deployment dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by