필터 지우기
필터 지우기

How to generate mlapp file

조회 수: 31 (최근 30일)
Justin
Justin 2020년 12월 4일
답변: Kandarp Khandwala 2020년 12월 4일
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?

채택된 답변

Kandarp Khandwala
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개)

카테고리

Help CenterFile Exchange에서 Package and Share Apps에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by