필터 지우기
필터 지우기

How to show an image?

조회 수: 1 (최근 30일)
Darsana P M
Darsana P M 2018년 4월 6일
댓글: Darsana P M 2018년 4월 6일
I would like to display a matrix as an image. The matrix is of size 250 2. I used image() function. But got an error stating an error.
CIJ=cell2mat(Cipher);
kk=CIJ*(1/100);
Cipher is of size 250 2. I tried to display kk, but I got a blue image. It must be a black and white image know? How to solve this issue?
  댓글 수: 2
Dennis
Dennis 2018년 4월 6일
why do you expect a black and white image? you can use colormap to change colors
Darsana P M
Darsana P M 2018년 4월 6일
How to use colormap function?

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2018년 4월 6일
image(kk)
colormap(gray(256))
  댓글 수: 1
Darsana P M
Darsana P M 2018년 4월 6일
That helped me. Thanks sir

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Blue에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by