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일

0 개 추천

image(kk)
colormap(gray(256))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2018년 4월 6일

댓글:

2018년 4월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by