This commit is contained in:
2025-11-17 11:16:02 +08:00
Unverified
parent 4bd2d87fc4
commit 1b3b07a7f6
35 changed files with 454 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
subplot(1,2,1);
x=-3:0.1:3;
y=-3:0.1:3;
z=x.*exp(-x.^2-y.^2);
plot3(x,y,z);
subplot(1,2,2);
[x,y]=meshgrid(-3:0.1:3);
z=x.*exp(-x.^2-y.^2);
surf(x,y,z);
shading interp;
colormap("spring");
k=find(x<=0 & y<=0);
z1=z;
z1(k)=NaN;
surf(x,y,z1);
shading interp;