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

3 views (last 30 days)
how do I run a .exe within a .m file?

Accepted Answer

Akira Agata
Akira Agata on 29 May 2019
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.
system('notepad.exe');

More Answers (0)

Categories

Find more on Dynamic System Models in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!