Packaging Apps and M files - M files duplicated

조회 수: 26 (최근 30일)
Scott
Scott 2025년 11월 25일 8:45
댓글: Scott 2025년 12월 17일 12:17
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?

채택된 답변

Aditya
Aditya 2025년 12월 15일 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:
  • 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.
You can also refer to the following documentation for more details.
https://www.mathworks.com/help/matlab/gui-development.html
  댓글 수: 1
Scott
Scott 2025년 12월 17일 12:17
Great thanks.
The only reason I need to package the apps first is that you can't set an icon for them if you just add them directly to a toolbox.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Package and Share Apps에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by