How to use an image as a GUI front panel when deploying an exe application
1 次查看(过去 30 天)
显示 更早的评论
Hello! How to use an image (currently exists in my computer) when I deploy my file and its GUI to generate an .exe application? When I run the generated .exe file in another computer, it does not recognize the path of the image (which makes sense). What should I do to use this image with the .exe application in any computer? Please see the attached code.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/165629/image.jpeg)
Note: I use runtime compiler 8.5 to generate the .exe standalone application
0 个评论
采纳的回答
Walter Roberson
2017-6-29
Put the image into the directory you are compiling in, and tell the tool to attach the file, or use the -a command line flag for mcc.
For more information see http://blogs.mathworks.com/loren/2008/08/11/path-management-in-deployed-applications/
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!