필터 지우기
필터 지우기

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?

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by