Create Web App
To create a web app, you need an installation of the MATLAB® Compiler™ product.
App Designer Prerequisite
Before you can package and then deploy a web app, you need to create an app using MATLAB App Designer. For more information, see Create and Run a Simple App Using App Designer (MATLAB).
Steps to Package and Create a Web App
webAppCompilerat the MATLAB command line to open the Web App Compiler app.
In the MAIN FILE section of the toolstrip, click the button to add your App Designer
.mlappfile to the project. The Web App Compiler automatically resizes to include an App details section that contains information about the app such as app name, author, summary, description, and version. You can edit information about the app in App Designer by clicking Edit App Details. Click Refresh to update Web App Compiler with any changes you have made.
(Optional) Select Copy web app to server app folder check box and specify the path to the app folder on the server where you want the web app archive (
.ctffile) to be automatically copied. If you leave this check box cleared, the Web App Compiler will create the web app archive (
.ctffile) in the project folder. You must manually copy or upload the web app archive (
.ctffile) to the app folder on the server.
Add supporting files, if any, in the Files required for your app to run section. Supporting files include any MAT-files, images used by your web app, or user-written MATLAB functions not found by MATLAB Compiler.
Click Package to package the app, and create a web app archive (
In the Save Project dialog box that opens, specify a project name and a location where you want to save the web app project. Web App Compiler saves your project and opens a Package dialog box.
Once packaging is complete, in the Package dialog box, click Open output folder. This step opens the project folder which contains the following files:
You can view the log file,
PackagingLog.html, to see the exact
mccsyntax used to package and create the web app archive.
To use the web app, deploy the web app archive file,
. For more information, see Deploy Web App.
In most cases, you can generate a web app archive (
.ctf file) on
one platform and deploy to a server running on any other supported platform. Unless you
add operating system-specific dependencies or content, such as MEX files or Simulink® simulations to your applications, the generated archives are