is it possible to make an image in GUI matlab which is not predefine but define by user input?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
misbah 0332
am 29 Nov. 2015
Bearbeitet: misbah 0332
am 6 Dez. 2015
is it possible to make an image in GUI matlab which is not predefine but define by user input?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 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 Kommentar
Walter Roberson
am 29 Nov. 2015
http://www.mathworks.com/help/matlab/ref/image-properties.html ButtonDownFcn callback, together with get(gcf,'CurrentPoint')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!