- /
-
Heidi's Alpine Village in early spring
on 10 Oct 2022
- 11
- 110
- 0
- 3
- 280
rng(0)
g=@chebfun2;
f=g(0);
for k=1:10
a=2*rand-1;
b=2*rand-1;
f=f+g(@(x,y)exp(-10*((x-a).^2+(y-b).^2)));
end
plot(f)
hold
r=.2.*roots(gradient(f));
colormap summer
w=r(:,1);
u=r(:,2);
scatter3(w,u,f(w,u),50,'k','f')
q=ones(2)/5;
v=[-1,1];
surf(v,v,q,q+cat(3,0,1,1),FaceA=.7)
zlim([0 4])
axis off
view([-8 30]);