How to insert an image in app designer?

8 vues (au cours des 30 derniers jours)
Muazma Ali
Muazma Ali le 8 Mai 2022
Commenté : Image Analyst le 29 Juil 2022
Hi! :)
I have included an image with a kind of sound in my program . I havent made any app yet but I am wondering whether there is a possibility in the app designer to make a such image appear at the beginning of the program. As my program starts, the image is closed and I want it to happen in the app also.

Réponse acceptée

Image Analyst
Image Analyst le 8 Mai 2022
Can't you put an axes on the figure and call imread() and imshow() in your startup function?
  4 commentaires
Muazma Ali
Muazma Ali le 29 Juil 2022
@Image Analyst How can I make sure that the axis disapperars from the GUI when the figure disappears..?
Image Analyst
Image Analyst le 29 Juil 2022
The figure is the main window. The figure has an axes control on it. The axes control may have an image in it, or data like a line plot graph. When the figure disappears the whole program disappears including everything on the figure (axes, buttons, listboxed, checkboxes, etc.). If you want to hide an axes you cal call
cla
axis off
You can also set the visible property to 0 or 'off'. Or you mgiht try the attached function.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by