Embedding images in standalone MATLAB GUI

조회 수: 1 (최근 30일)
ANUBHAV SINHA
ANUBHAV SINHA 2011년 11월 7일
Hi, I constructed a standalone executable file for a MATLAB GUI. The GUI contains images which I have called into the axes by using the code shown.
axes(handles.axes1);
imshow('C:\Users\asinha14\My Documents\MATLAB\DFIG\DFIG_PNG.png')
handles.output = hObject;
Further, while using the deploytool I have also added the image files in the 'Other files' section.
However, while running the 'exe' on any other computer, it gives an error message saying that the executable is unable to locate the path where the image is stored. May anyone guide about how I may 'embed' the images into the GUI exe while packaging or writing the code.
Thanking you for your time.
Anubhav
  댓글 수: 1
Jan
Jan 2011년 11월 7일
Please delete this double posting before anyone adds an answer. See: http://www.mathworks.com/matlabcentral/answers/20498-embedding-images-in-gui-standalone-executable

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by