• Remix
  • Share
  • New Entry

on 24 Oct 2021
  • 3
  • 15
  • 0
  • 0
  • 279
x=0:0.1:1;
[X,Y,Z]=meshgrid(x);
map=[X(:) Y(:) Z(:)];
subplot(1,2,1)
scatter3(X(:),Y(:),Z(:),50,map,'filled') %,'MarkerFaceAlpha',0.7)
%xlabel('R'),ylabel('G'),zlabel('B')
axis equal off
subplot(1,2,2)
colormap(map)
n=length(x);
V=reshape(1:length(map),[n n n]);
slc=[0 1];
h=slice(X,Y,Z,V,slc,slc,slc);
set(h,'EdgeColor','none','FaceAlpha',0.75)
axis equal off
Image
Remix Tree