how would you merge several m.lapp to create one m.lapp
4 次查看(过去 30 天)
显示 更早的评论
i have created several user interface using the app designer, the problem is that all ot these UI figures need to be ran with one code or rather with just one m.lapp, but i cannot figure out how to make all 5 m.lapp into 1 m.lapp.
Thank you.
0 个评论
采纳的回答
Harshit Gupta
2022-11-14
Hi Nwasinachi,
As per my understanding, you want to combine several “MLAPP” files into a single “MLAPP” file, so that all your UI figures can be run with one code/ one “MLAPP” file.
Unfortunately, there is no way currently to merge “MLAPP” files, in Git or outside, aside from a very manual process of comparing the files using the Comparison Tool and then adjusting the UI elements in the Design View to match the generated (greyed out) code.
The current recommendation for making this merge process less painful is to:
1) Migrate all non-UI code from within App Designer to outside functions and classes
2) Limit changes of the UI code to one developer at a time, to minimize the number of merge conflicts in MLAPP files
Point (1) also has the benefit of making the "business logic" or "backend" code testable and runnable outside of the application.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!