
How to plot complete 3D RGB color space (gamut) in matlab?
15 views (last 30 days)
Show older comments
How to plot all the available RGB colors' gamut plot in matlab?
(The below plot is exactly what I wish to draw)

0 Comments
Answers (1)
jonas
on 22 Aug 2020
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 Comments
See Also
Categories
Find more on Blue in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!