to Convert .m file to .exe , do the following steps:
Enter deploytool to open the deployment tool window; create a new project at the prompt (see attached : 1.png)
Under the "Application Compiler" tab, click the links "add main file" and "add files/directory" and add your MATLAB GUI code files (and data files, if necessary) (see attached : 2.png)