Effacer les filtres
Effacer les filtres

How to include and read data from sub-folders when creating a standalone application?

3 vues (au cours des 30 derniers jours)
Xin Liu
Xin Liu le 5 Nov 2022
Commenté : Xin Liu le 5 Nov 2022
Hello everyone,
I am creating an .exe program using the App Designer.
In the startup function, I write
I = imread('./Resources/icons/Eye.png');
figure;
imagesc(I);
In addition, I have included the 'Resource' folder and 'Eye.png' in the Application Compiler. However, when I run the .exe programm, it fails to read this file and cause error.
  5 commentaires
Xin Liu
Xin Liu le 5 Nov 2022
I found that I can include the folder in the 'Files installed for your end user', and use pwd + relative path to realize this function.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by