You might be able to get a faculty member to compile the code using an Academic license, provided that the code will be used for purposes consistent with the Academic license.
Otherwise, you would need to do one of the following:
- purchase a Professional license with the MATLAB Compiler option
- win a Mathworks contest in which a license was the prize
- get a job at Mathworks
- get a job somewhere that had a Compiler license