MATLAB: How to run a .exe within a .m file

exe mfile

how do I run a .exe within a .m file?

Best Answer

  • You can use system function to run a .exe. For example, if you save the following line in .m file and run in MATLAB on Windows PC, you can run notepad.exe and start Windows' Notepad.