• Remix
  • Share
  • New Entry

on 18 Oct 2021
  • 10
  • 37
  • 0
  • 0
  • 271
N=400;
H=randn(N);
[y,x]=meshgrid(1:N);
for n=1:200
d=H-circshift(H,1);
g=(1+tan(d))*0.5;
L=10.*(1-tanh(d)); %
m=mod(round(x+randn(1)*7)-1,N)+1;
o=mod(round(y+L)-1,N)+1;
ig=accumarray([m(:),o(:)],g(:),[N,N]);
H=H-g+ig;
%H=conv2(H,ones(3)/9,'same');
H=conv2(H,ones(3)/9,'same');
end
imshow(diff(H'))
%colormap(gray)
text(9,89,"🥨","FontSize",19)
%caxis([-2,4])
ans = 1×4
0.5000 400.5000 0.5000 399.5000
Remix Tree