How to generate mlapp file
조회 수: 14 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
Kandarp Khandwala
2020년 12월 4일
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.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Package and Share Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!