Execute commands from an external .exe application
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How can I issue commands from Matlab to an external .exe application?
I need to open an exe application and perform a repetitive operation a large number of times, so I need to automate this process.
1 commentaire
Mario Malic
le 28 Mai 2024
Might be helpful to give you an idea what to look for https://uk.mathworks.com/matlabcentral/answers/2105981-i-want-to-know-how-to-use-matlab-to-invoke-two-software-to-process-data#answer_1440396
Your question lacks relevant details about the software in question.
Réponses (1)
Arun
le 13 Juin 2024
I understand that you want to use MATLAB to issue commands to an external .exe application.
“system” function calls the operating system to execute the specified command. The operation waits for the command to finish execution before returning the exit status of the command.
If the operation involves complex command-line interactions or needs to be executed multiple times with different parameters, writing a batch script and then call this script from MATLAB using the “system” function might be helpful.
Example: Script.bat:
@echo off
path\to\your\application.exe argument1
path\to\your\application.exe argument2
Command:
>>system(‘script.bat’)
For more information related to “system” function please refer the following MATLAB documentation link:
Hope this helps!
Regards
Arun
0 commentaires
Voir également
Catégories
En savoir plus sur MATLAB Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!