Azzera filtri
Azzera filtri

How to display an image within the figure in App Designer?

4 visualizzazioni (ultimi 30 giorni)
Hi,
I used to work with GUI and I am very new to the 'App Designer'. As you can see here I have created an interface.
I am hoping to click on the top button 'load your image', select an image in the file, then display it in the 'image' area. I don't know how to achieve this.
Please can anyone give me some advices? :)

Risposta accettata

Yongjian Feng
Yongjian Feng il 17 Nov 2021
Modificato: Yongjian Feng il 17 Nov 2021
Try this in your callback:
[file, path] = uigetfile({'*.png'; '*.jpg'}, 'Select file');
app.Image.ImageSource = [path file];

Più risposte (0)

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by