How to generate mlapp file

25 views (last 30 days)
Justin
Justin on 4 Dec 2020
I have a GUI that I compile with Matlab Compiler and then deploy the .exe file on other machines. The GUI was created programatically not with GUIDE or App Designer.
I am investigating deploying it as a web app in future.
The Web App Compiler requires a .mlapp file.
I can use Package App to create a .mlappinstall file for my GUI and then run that to get the app into the ribbon. My GUI works fine from there.
What I can't seem to do is create/find the .mlapp file to use with the Web App Compiler. I assume it was created in the previous step but its not in C:\Users\xx\AppData\Roaming\MathWorks\MATLAB Add-Ons\Apps although other files related to my GUI are.
Where is the .mlapp file or, if not created in the above steps, how do I create it from my GUI m-code?

Accepted Answer

Kandarp Khandwala
Kandarp Khandwala on 4 Dec 2020
Hi Justin, I understand that you are trying to deploy a GUI in M-code using Web App Compiler.
However, the Web App Compiler requires MLAPP files, which are apps build using App Designer. This requirement is noted in the third paragraph of the introduction here: https://www.mathworks.com/help/compiler/web-apps.html
There is currently no way to directly convert M-code to an MLAPP file, but you may be able to reuse some of your code in App Designer as noted in this answer: https://www.mathworks.com/matlabcentral/answers/507366-import-a-m-file-into-app-designer. When you package an app (in a .mlappinstall file), it does not convert it to an MLAPP – it only creates an installer for your users to get the M-code app that you built.

More Answers (0)

Categories

Find more on MATLAB Web App Server in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!