• Remix
  • Share
  • New Entry

on 17 Oct 2021
  • 4
  • 18
  • 0
  • 0
  • 262
x=rand(100,1)*16-8;
y=rand(100,1)*16-8;
r=sqrt(x.^2+y.^2)+eps;z=sin(r)./r;
plot3(x,y,z,'.','MarkerSize',15);hold on;
xlin=linspace(min(x),max(x),32);
ylin=linspace(min(y),max(y),32);
[X,Y]=meshgrid(xlin,ylin);
Z=griddata(x,y,z,X,Y,'cubic');
surf(X,Y,Z);colormap(autumn);axis off;
Remix Tree