How do I display an image in an axes when a push button is clicked in matlab gui ?

6 vues (au cours des 30 derniers jours)
va run
va run le 17 Fév 2016
I want to display an image in the axes when push button 1 is clicked and in the same axes i want to display another image when push button 2 is clicked How do i do it?

Réponses (1)

Walter Roberson
Walter Roberson le 18 Fév 2016
ax = handles.TheDestinationAxes
im = imread('TheImageToShow.png');
imshow(im, 'Parent', ax);

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by