- Open the MATLAB Project.
- In the "Project" tab of the top MATLAB toolbar, select the "Deployment Task Manager" from the "Tools" section.
- In the "Deployment Task Manager", select "New Deployment Task" > "MATLAB Compiler" > "Standalone Application". This will open a "Deployment" tab in the top MATLAB toolbar.
- In this "Deployment" tab at the top MATLAB toolbar, click on the "Create Build Script" button.
- Save the deployment script as a MATLAB file.

