フィルターのクリア

Absolute path for image to run in excutable standalone MATLAB application

1 回表示 (過去 30 日間)
Tareq Rahmani
Tareq Rahmani 2020 年 3 月 30 日
コメント済み: Tareq Rahmani 2020 年 3 月 30 日
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 ?

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by