这是我使用的代码:
UnitCellCount = 1;
分辨率= 100;
[x, y, z] = ndgrid([0:(1 /决议)UnitCellCount):……
,(0:决议(1 /):UnitCellCount],…
[0(1 /决议):UnitCellCount]);
t = (cos(2 *π* x)。* sin(2 *π* y) + cos(2 *π* y)。* sin(2 *π* z) + cos(2 *π* z)。* sin(2 *π* x));
t0 = 1.35;
fv3 =等值面(x, y, z, t, t ' noshare ');
fv3.vertices补丁(“顶点”,“脸”,fv3.faces,‘FaceColor’,‘r’,‘EdgeColor’,‘没有’,‘FaceAlpha’, 1);
daspect ((1 1 1));
照明高洛德
视图(120、-50);
camlight左