How to plot complete 3D RGB color space (gamut) in matlab?

5 ビュー (過去 30 日間)
Sachin Motwani
Sachin Motwani 2020 年 8 月 22 日
コメント済み: jonas 2020 年 8 月 27 日
How to plot all the available RGB colors' gamut plot in matlab?
(The below plot is exactly what I wish to draw)

回答 (1 件)

jonas
jonas 2020 年 8 月 22 日
Code adapted from this guide (link)
vert = [0 0 0;1 0 0;1 1 0;0 1 0;0 0 1;1 0 1;1 1 1;0 1 1];
fac = [1 2 6 5;2 3 7 6;3 4 8 7;4 1 5 8;1 2 3 4;5 6 7 8];
colormap(vert)
patch('Vertices',vert,'Faces',fac,...
'FaceVertexCData',vert,'FaceColor','interp')
  3 件のコメント
Image Analyst
Image Analyst 2020 年 8 月 26 日
Click on the little popup rotation tool above the upper right corner of the image and then click and drag in the image to rotate the cube.
jonas
jonas 2020 年 8 月 27 日
What IA said. Alternatively you could add this:
view(3)
axis equal

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by