why imagesc display the matrix in black and white?
조회 수: 3 (최근 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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/165461/image.png)
댓글 수: 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!