guys plz if anyone can open my project and tell me the problem i would really appreciate it

1 view (last 30 days)
so im working on appdesigner and i imported an image just fine and it turned green,red all as the button says suddenly it stoped working and nothing would show im genuienly confused, another thing is in the left side of the interface (the side with the import button )thats where the problem is the left side of the interface is when i import another image it still adds the changes t the first image imported plz guys i would honestly appreciate the help and thank u in advance
here is my app file

Accepted Answer

Image Analyst
Image Analyst on 30 Nov 2022
After I imported an image it looked fine. It didn't turn all red or green.
Don't set XData and yData in imshow.
Don't set the xlim of the axes, just do
axis('on', 'image');
Don't have users browse to import an image. Just load up all the images in a listbox so they can simply click on the one they want - it's far simpler and kinder to your user.
  1 Comment
Walter Roberson
Walter Roberson on 30 Nov 2022
If it is App Designer then you should name the axes being affected; otherwise you might end up creating a new axes.
axis(app.UIAxes3, 'on', 'image'); %for example

Sign in to comment.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps 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!