フィルターのクリア

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 Center および File ExchangeBlue についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by