Color that shows by the imshow, doesn't match to the color that I expect.
조회 수: 2 (최근 30일)
이전 댓글 표시
As you see in these matrix, the third column in second row must be the orange. And the second column in the first row must be the purple, but the figure does not show the correct color. How can i fix this?
댓글 수: 1
Jan
2022년 12월 15일
It is easier to check the values, if you post the code as text, not as screenshot.
This is not twitter: No # before the tags. Thanks.
채택된 답변
millercommamatt
2022년 12월 15일
이동: Jan
2022년 12월 15일
This displays as expected for me.
imshow(uint8(cat(3,...
[0 128 0;0 255 255;255 255 255;0 0 0],...
[0 0 0;255 255 128;0 255 0;255 255 255],...
[255 255 0;0 0 0;0 255 255;255 255 255])),'InitialMagnification','fit');
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!