Type libraryCompiler
at the MATLAB command line to
open the Library Compiler app.
In the Library Compiler app project window, specify the files of the MATLAB® application that you want to deploy.
In the Exported Functions section of the toolstrip, click .
In the Add Files window, browse to the example folder, and select the function you want to package. Click Open.
The function is added to the list of exported function files. Repeat this step to package multiple files in the same application.
In the Packaging Options section of the toolstrip, decide whether to include the MATLAB Runtime installer in the generated application by selecting one of the options:
Runtime downloaded from web — Generate an installer that downloads the MATLAB Runtime and installs it along with the deployed MATLAB application. You can specify the filename of the installer.
Runtime included in package — Generate an application that includes the MATLAB Runtime installer. You can specify the filename of the installer.
Note
The first time you select this option, you are prompted to download the MATLAB Runtime installer.
Verify that the MATLAB function you are packing into an Excel® add-in is mapped onto a class. You can change the name from
the default name Class 1
to something more
meaningful.
Customize the packaged application and its appearance:
Library information — Editable information about the deployed application. You can also customize the standalone applications appearance by changing the application icon and splash screen. The generated installer uses this information to populate the installed application metadata. See Customize the Installer.
Additional installer options — Edit the default installation path for the generated installer and selecting custom logo. See Change the Installation Path .
Files required for your library to run — Additional files required by the generated application to run. These files are included in the generated application installer. See Manage Required Files in Compiler Project.
Files installed for your end user — Files that are installed with your application. These files include:
Generated readme.txt
Generated executable for the target platform
Additional runtime settings — Platform-specific options for controlling the generated executable. See Additional Runtime Settings.
To generate the packaged application, click Package.
In the Save Project dialog box, specify the location to save the project.
In the Package dialog box, verify that Open output folder when process completes is selected.
When the packaging process is complete, examine the generated output.
Three folders are generated in the target folder location:
for_redistribution
,
for_redistribution_files_only
, and
for_testing
.
For more information about the files generated in these folders, see Files Generated After Packaging MATLAB Functions.
PackagingLog.txt
— Log file generated by
MATLAB
Compiler™.