Why is MATLAB Compiler not detecting the image dependency from "uiimage"?
Show older comments
I am trying to compile and deploy a simple application with an image using MATLAB Compiler in R2022b.
I use the code below to load the image named "questions.gif" in the app:
fig = uifigure;
im = uiimage(fig,"ImageSource","./questions.gif");
When I open the Application Compiler, it does not auto-detect the dependency on the image. However, when I use the following code, then the image is detected as a dependency of my application:
fig = uifigure;
imread('questions.gif');
im = uiimage(fig,"ImageSource","./questions.gif");
How can I add "question.gif" to the dependencies of my application without having to use "imread"?
Accepted Answer
More Answers (0)
Categories
Find more on Standalone Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!