why imagesc display the matrix in black and white?

8 ビュー (過去 30 日間)
Kobi
Kobi 2014 年 7 月 8 日
コメント済み: Image Analyst 2014 年 7 月 9 日
during a calculation of a complex matrix inside exp function i recived the following resault as seen in the attached image below the values are the real part of the matrix in both figures and they both go between 0 to 1 why the figure on the right is in black and white?

回答 (1 件)

Image Analyst
Image Analyst 2014 年 7 月 8 日
You have not applied a colormap to that image on the right. The one on the left has a colormap applied to it.
  2 件のコメント
Kobi
Kobi 2014 年 7 月 9 日
colormap works great but why did it turn into gray?
Image Analyst
Image Analyst 2014 年 7 月 9 日
You did not show your code, so I don't know. By default imagesc() applies the jet (I believe) colormap. I find application of some arbitrary colormap that may not be appropriate annoying. I would guess that in your code you called colormap(gray);

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeWhite についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by