Running .exe file from MTLAB using system()
31 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I use system to run my executable file:
system('myfile.exe')
The problem that I'm facing is that it doesn't go to next line unless I close the GUI (which the exe file opens). The exe file doesn't need an input so all I want is to run the exe file programmatically and move on to the next line without waiting for an action from the user. Can anybody help me please? I'd be grateful.
0 个评论
采纳的回答
Guillaume
2015-2-21
As per the tip section system's help: to execute the operating system command in the background, include the trailing character, &, in the command argument. Therefore:
system('myfile.exe &');
3 个评论
Image Analyst
2015-2-21
Medhi's comment again copied here because he keeps putting his comments as "Answers" to his original question instead of replies to Guillaume, even though they're not:
Thank you but I've tried that; it closes the GUI and opens a DOS page. That's not what I want.
更多回答(1 个)
mehdi rezaei
2017-2-15
hello I want to run my executable file and it has some button and i want to press one of this button with matlab code. please help me. thank you everyone
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!