Insert image in AppDesigner GUI

I need to include PNG and JPG files inside an AppDesigner GUI, however I've not found yet a way to do it. Could anybody help me?

 Risposta accettata

Chris Portal
Chris Portal il 11 Mag 2016
Modificato: Eric Sargent il 22 Mag 2020

3 voti

Starting in R2019a you can use the uiimage function.
For releases R2016b to R2018b, you can plot image data into a UIAXES.
If you're looking to display image data from a file, the new App Designer button component provides an Icon property that accepts image files. You can reference the following documentation:

2 Commenti

Royi Avital
Royi Avital il 18 Ago 2016
Modificato: Royi Avital il 18 Ago 2016
Will it be available in R2016b?
If you want to know whether it will be available in R2016b and you are eligible for the Preview, then download the preview and test. Information about forthcoming releases is under Non Disclosure Agreement so the people who know (one way or the other) cannot answer the question here.

Accedi per commentare.

Più risposte (3)

Melinda Toth-Zubairi
Melinda Toth-Zubairi il 25 Mar 2019

2 voti

Starting in R2019a you can use the uiimage function to create an image component in App Designer apps. See the following post for more information.
Walter Roberson
Walter Roberson il 8 Mag 2016

0 voti

2 Commenti

So there isn't any way to do it, is it? I would have to work with GUIDE then...
Thank you.
Yes. Hopefully just until the next release in September. Not being able to display images would be a major outage. I'm actually surprised they released it yet without that capability.

Accedi per commentare.

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by