is it possible to make an image in GUI matlab which is not predefine but define by user input?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
misbah 0332
le 29 Nov 2015
Modifié(e) : misbah 0332
le 6 Déc 2015
is it possible to make an image in GUI matlab which is not predefine but define by user input?
0 commentaires
Réponse acceptée
Walter Roberson
le 29 Nov 2015
n = input('how big a square do you want?');
v = input('how bright do you want, 0-255');
MyImage = zeros(n,n,'uint8');
MyImage(:) = v;
image(MyImage);
colormap(gray(256))
1 commentaire
Walter Roberson
le 29 Nov 2015
http://www.mathworks.com/help/matlab/ref/image-properties.html ButtonDownFcn callback, together with get(gcf,'CurrentPoint')
Plus de réponses (0)
Voir également
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!