How to get code from a mlapp file using an earlier matlab version

66 ビュー (過去 30 日間)
Jessica Hiscocks
Jessica Hiscocks 2018 年 6 月 9 日
編集済み: Walter Roberson 2018 年 6 月 10 日
Using Matlab 2018a I wrote an application (using app designer) generating a .mlapp file. Now my license has expired. I have an active copy of 2016b, and tried to open the app with the goal of editing it to run in that version instead. However, it won't open or even give me the underlying code. I tried using the online matlab service, but while the online matlab lets you run the app, it doesn't seem to include any 'app designer' functions. I just want the code, and preferably the UI object tree so that I can re-make my application (attached) without having to redo the whole thing.

採用された回答

Walter Roberson
Walter Roberson 2018 年 6 月 9 日
Use your favorite unarchiver to unzip the mlapp (it is effectively a .zip under a different name.)
Look inside what is produced to find matlab/document.xml to see the code.
Also look at the appdesigner/appModel.mat file that is there. If you load that file, then you can look at, for example,
code.Callbacks(2).Name
code.Callbacks(2).Code
  2 件のコメント
Jessica Hiscocks
Jessica Hiscocks 2018 年 6 月 9 日
Thank you, this is a huge help.
Chris Portal
Chris Portal 2018 年 6 月 10 日
編集済み: Walter Roberson 2018 年 6 月 10 日
You could also try this File Exchange submission:

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by