How to convert from MATLAB m-file to a stand-alone *.exe file? Let's use hopGraph.m as an example. Here's how to do it...
- add this code on line 1 of hopGraph.m function hopGraph()
- in the MATLAB workspace type in this command >> mcc -m hopGraph.m
- Compiler Value is 1
- Go to the folder where hopGraph.m is kept and open the hopGraph.exe :D
little warning: this exe file will not work in a computer with no MATLAB installed! I haven't been able to locate the *.dll files that needs to do this :(