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

1 Ansicht (letzte 30 Tage)
Nwasinachi
Nwasinachi am 10 Nov. 2022
Kommentiert: Nwasinachi am 22 Nov. 2022
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.

Akzeptierte Antwort

Harshit Gupta
Harshit Gupta am 14 Nov. 2022
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.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by