Color that shows by the imshow, doesn't match to the color that I expect.
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1231522/image.png)
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');
![imshow test](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1231797/imshow%20test.jpeg)
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!