Absolute path for image to run in excutable standalone MATLAB application

1 visualizzazione (ultimi 30 giorni)
Hi all
I have this portion of my program :
app.Image3 = uiimage(app.TeDIKWESEARDIUIFigure);
app.Image3.HorizontalAlignment = 'right';
app.Image3.Position = [941 669 50 50];
app.Image3.ImageSource = 'UX.png';
I want to deploy this program to a standalone application . How can I add the UX.png file to the application so that it can show the image if runing on any other computer
In java , I know it is like this : ImageIcon(getClass().getClassLoader().getResource("icons/UX.png"));
UX.png is added to the icons folder, then icons folder is added to the package.
But , how to this in MATLAB ?

Risposte (0)

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by