how to run .exe file in matlab
160 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
can anyone plz tell me how to run .exe file in matlab regards
0 Commenti
Risposte (3)
Drew Weymouth
il 11 Nov 2011
The built in function system(command) will execute the given command (a string) in a windows command prompt. So you might have system('"myexe.exe" arg0 arg1') where myexe.exe is the file you want to run, and arg0 and arg1 are input arguments (strings) to that exe. Type help system in the MATLAB command window for more details.
3 Commenti
Hemanth Reddy
il 21 Feb 2025
Questo/a commento è stato/a segnalato/a da Steven Lord
WHY ITS TAKING MORE TIME IF WE CALL THIS EXE FILE IN VISUAL STUDIO C++?
WHEN I RUN THE SAME CODE IN MATLAB ITS TAKING LESS TIME(8 SEC) BUT WHY IF CALL THE EXE FIKLE WHICH HAS SAME CODE ITS TAKING (20 SEC). MORE TIME TO COMPLETE THE EXECUTATION.
Joao
il 28 Set 2017
And how can one evaluate when the executable finishes running/windows command prompt is closed? I've tried [status output]=system(command), but with no luck for running executables.
1 Commento
Walter Roberson
il 28 Set 2017
If you do not add & to the end of the command line, then executables that are set up to run as Windows command line executables will not return from system() until they have completed.
However, if you have added & to the end of the command line, or you are using an .exe that is configured to run as an "application", then the return will be as soon as initialization has finished, and there is no notification to MATLAB of when the executable terminates. In such a situation, to figure out whether the executable is still executing you would need to use taskmgr on MS Windows.
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!