- Put all shared .m files in your toolbox (not in the app folder).
- Package the app (.mlappinstall) to only include the .mlapp file, not the shared .m files.
- When packaging the app, uncheck/remove any .m files that are already in the toolbox.
Packaging Apps and M files - M files duplicated
26 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Scott
le 25 Nov 2025 à 8:45
Commenté : Scott
il y a environ 22 heures
Currently re-building a toolbox containing 3 apps from something developed in R2018b now building with R2024a.
When I run an app, it is using a seperate copy of an m file contain within its own folder rather than the m file installed with the rest of the toolbox m files. Toolboxes and Apps now appear to be installed to seperate directories.
Is there a method to package an app as part of a toolbox without duplicating m files in the App's folder?
0 commentaires
Réponse acceptée
Aditya
le 15 Déc 2025 à 7:49
Hi Scott,
This is a common issue when upgrading MATLAB toolboxes and apps, especially since the packaging and installation structure has changed between R2018b and R2024a. Here are a few steps that ,ight help you solve the issue:
You can also refer to the following documentation for more details.
https://www.mathworks.com/help/matlab/gui-development.html
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Package and Share Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!