フィルターのクリア

File path issues with custom app installation

6 ビュー (過去 30 日間)
Franklin Turbeville
Franklin Turbeville 2019 年 2 月 11 日
回答済み: Image Analyst 2019 年 2 月 11 日
I installed a custom app using a mlappinstaller file. The app installed by default to "Documents\MATLAB\Add-Ons\Apps". The app was packaged with images that are used as icons for buttons. When I start up the app and don't have that folder specified as my current folder, the app doesn't find these images and throws an error. Is it possible to install the app in a way where this error does not happen? Should the code be written to always reference this folder? In that case it would seem that the file path would be different for anyone that installs the app. Let me know if this is unclear.

採用された回答

Image Analyst
Image Analyst 2019 年 2 月 11 日
Are you using fullfile() to specify the complete path of the images? See my attached utility to get the actual folder where the executable is.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by