How do I run a separate .exe file within a .m script?

I have an executable program to pull bin data from different directories and convert the data into .csv files. How do I write the command to run this separate executable within my matlab program? I prefaced the name of the executable with ! character without the .exe extension, but when I ran the program in my Command Window, I received the message 'Not recognized as an internal command, operable program or batch file'. Program works fine as a standalone executable and resides in my home directory where matlab script resides. Can someone please provide some guidance? Thank you.

 采纳的回答

Thank you Paolo. I tried your solution and it works perfectly. I was not aware of the 'system' function to run an external batch or exe program. Thanks for the help!!

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by