is it possible to make an image in GUI matlab which is not predefine but define by user input?

1 Ansicht (letzte 30 Tage)
is it possible to make an image in GUI matlab which is not predefine but define by user input?

Akzeptierte Antwort

Walter Roberson
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))

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by