Why do I receive the error "Unhandled Exception: System.IO.IOException: The handle is invalid." when executing an operating system command from MATLAB?
Mostra commenti meno recenti
I am trying to execute an operating system command from the MATLAB command line that runs my executable, however when executing the following command using the ! operator in MATLAB:
!myProgram.exe
I received the following error in MATLAB:
Unhandled Exception: System.IO.IOException: The handle is invalid.
I also receive this error when using the "system" function instead with the following syntax:
system('myProgram.exe')
I am able to run the executable by entering the executable in my operating system command prompt directly. So why do I get the error when trying from MATLAB?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Startup and Shutdown in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!