Rescaling RGB for imagesc
4 ビュー (過去 30 日間)
古いコメントを表示
Zahra Yousefi Darani
2023 年 7 月 30 日
コメント済み: Zahra Yousefi Darani
2023 年 7 月 30 日
I have a colormap:
BeautifulColorVector =
0.3735 0 0.7500
0.2490 0 0.5000
0.1245 0 0.2500
0.0700 0.0700 0.0700
I made this to create a 2x2 matrix with beautiful colors by imagesc.
How can I rescale the colour in a way that true colors appear by imagesc function?
0 件のコメント
採用された回答
Walter Roberson
2023 年 7 月 30 日
BeautifulColorVector = [
0.3735 0 0.7500
0.2490 0 0.5000
0.1245 0 0.2500
0.0700 0.0700 0.0700];
img = [1 2; 3 4];
imagesc(img); colormap(BeautifulColorVector)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Colormaps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!