• Remix
  • Share
  • New Entry

on 9 Oct 2021
  • 5
  • 37
  • 0
  • 0
  • 279
n=16;
[x,y]=meshgrid(1:.01:n);
v=interp2(1:n,1:n,p(zeros(n)),x,y,'cubic');
figure
surf(x,y,v)
%pcolor(im)
colormap copper
shading interp
campos([4,4,10])
camva(45)
camlight
axis vis3d off
function m=p(m)
[n,~]=size(m);
i=0;
w=n;
while w>3
i=i+1;
d=interp2(randn(n),i-1,'spline');
m=m+i*d(1:n,1:n);
w=w-ceil(w/2-1);
end
end
Remix Tree