why imagesc display the matrix in black and white?
4 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
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 个评论
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 Exchange 中查找有关 White 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!