• Remix
  • Share
  • New Entry

on 23 Oct 2021
  • 4
  • 74
  • 0
  • 0
  • 197
x = [0 1]';
[X,Y,Z] = meshgrid(x,x,x);
v = [X(:),Y(:),Z(:)];
f = [1 3 7 5;
3 4 8 7;
4 2 6 8;
2 1 5 6;
1 3 4 2;
5 7 8 6];
patch('Vertices',v,'Faces',f,...
'FaceVertexCData',v,'FaceColor','interp')
view(3)
axis equal off
Image
Remix Tree