You can export a GUIDE FIG-file and code file to a single programmatic code file. Executes the resulting code file displays the UI, and no FIG-file is required.
To export a UI that is open in GUIDE, select File > Export.
If the UI contains binary data (for example, icons or
exporting it sometimes generates a MAT-file containing that data.
The resulting code file contains instructions for reading the MAT-file.
The MAT-file must be on the MATLAB® search path when the code