How to convert .m to .mlapp

4 件のコメント

Adam Danz
Adam Danz 2019 年 11 月 1 日
.m is a file typically containing a script or function. .mlapp is an app designed in app designer. The request doesn't make sense.
Adam Danz
Adam Danz 2019 年 11 月 3 日
Hyunjin Park's answer moved here as a comment.
Actually i get .m file made by app designer from other person
so when i want to adjust something it is really hard to that because that files can't load at app designer
as you know, we can save .m form even though we made a code at app designer
so i want to migration .m file (it is made by app designer) to .mlapp
Adam Danz
Adam Danz 2019 年 11 月 3 日
編集済み: Adam Danz 2019 年 11 月 4 日
"Actually i get .m file made by app designer from other person"
What does that mean? App designer files are stored as .mlapp.
I think the m file you have was not created in app designed but was created bottom-up by creating a figure using uifigure() and additng other components manually. If that's the case, you cannot convert that to app-designer format. In fact, if that's the case, the m-file is better than an app designer file because you have more control of the bottom-up approach.
Another interpretation is that someone copy-pasted the content from the appdesigern code into an m file. But I doubt that m-file would even function.
If you attach the m file, it may clear up this issue.
Ahmet Kutsay DERE
Ahmet Kutsay DERE 2021 年 11 月 6 日
A Matlab .mlapp file can be converted into .m file by using save as (export to .m file) button. But I don't know how can I convert .m file, created by exporting from Matlab App, into .mlapp file. I'm also researching this too

サインインしてコメントする。

 採用された回答

Ajay Kumar
Ajay Kumar 2019 年 11 月 1 日

1 投票

If you have a GUI(.m) made in matlab and you want to convert it to MATLAB app(.mlapp), you can use migration tool provided by MATLAB.

1 件のコメント

Adam Danz
Adam Danz 2019 年 11 月 1 日
If the GUI was created by guide() then you'd need the m file and the fig file for migration.
If the GUI was created using uicontrol(), that can't be migrated. It's much better to build the GUI bottom-up anway.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

製品

リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by