is it possible to make an image in GUI matlab which is not predefine but define by user input?
1 回表示 (過去 30 日間)
古いコメントを表示
is it possible to make an image in GUI matlab which is not predefine but define by user input?
0 件のコメント
採用された回答
Walter Roberson
2015 年 11 月 29 日
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 件のコメント
Walter Roberson
2015 年 11 月 29 日
http://www.mathworks.com/help/matlab/ref/image-properties.html ButtonDownFcn callback, together with get(gcf,'CurrentPoint')
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!