MATLAB Answers

How can I display an image from a function that are operated by app designer in the app?

12 views (last 30 days)
Michal Elad
Michal Elad on 2 Dec 2020
Answered: Pranav Verma on 11 Dec 2020
Hi everyone :)
I have a function that contains an infint loop, and whenever a condition is checked, I want it to display an image on the app. Ant ideas how can I do so?
Thanks,
Michal

  2 Comments

Walter Roberson
Walter Roberson on 2 Dec 2020
Make sure you create an axes to display the image in, and pass the axes handle to imshow() using the 'parent' option
Michal Elad
Michal Elad on 2 Dec 2020
Thank you very much!!
I'm very new to working with GUIs, any chance you can write me an exampke of how I create the handle in the app designer and then how I use it in my function?
Thank you again,
Michal

Sign in to comment.

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by