List box with strings, Append those strings in the title of the figures when clicking on it.?
Afficher commentaires plus anciens
I have a List box. Which has strings say red, blue, green. An image is also there. when clicking the red, it should appear on the title of the figure, likewise next by clicking blue, it should append with red, likewise green also.
Réponse acceptée
Plus de réponses (1)
Sean de Wolski
le 17 Août 2012
figure;
imshow('cameraman.tif');
str = {'red','green','blue'};
hL = uicontrol('style','list','string',str,...
'callback',@(src,evt)title(sprintf('Color is: %s',str{get(src,'value')})));
1 commentaire
Sabarinathan Vadivelu
le 18 Août 2012
Catégories
En savoir plus sur App Building dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!