필터 지우기
필터 지우기

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 CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by