how would you merge several m.lapp to create one m.lapp

2 次查看(过去 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.

采纳的回答

Harshit Gupta
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 CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by