• Remix
  • Share
  • New Entry

on 4 Oct 2021
  • 5
  • 19
  • 0
  • 0
  • 224
[~,~,Z]=peaks(1E3);
[c,h]=contour3(Z,20);
i=1;
j=1;
hold on
while j<size(c,2)
n=c(2,j);
z=c(1,j);
x=c(1,j+1:j+n);
y=c(2,j+1:j+n);
patch(x,y,repmat(z,1,n),z,LineStyle='none',FaceAlpha=0.5);
j=j+n+1;
i=i+1;
end
set(gcf,Color='k');
set(gca,Visible='off');
Remix Tree