Filter löschen
Filter löschen

Absolute path for image to run in excutable standalone MATLAB application

1 Ansicht (letzte 30 Tage)
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 ?

Antworten (0)

Kategorien

Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by