Second, he baidu network backup link are banned, and my new created a link: https://pan.baidu.com/s/1GhqZdHAOmc276EG7-pJ_xA
The extracted code: 4 n06
Copy this paragraph after open the baidu network backup phone App, operation more convenient oh
I don't like this article the author reviews and I often watch, please immediately inform me if the link failure,
Then there is usage:
CLC, the clear
V=csvread (' vdata. TXT);
The load test
V=reshape (v, 5,27,6);
[x, y, z]=meshgrid (1:27, 1:5, 1:6).
H=figure (1);
Set (h, the 'name', 'a single slice')
Subplot (221)
Slice (x, y, z, v, [], [1], []);
Shading interp
Set (gca, 'zdir', 'reverse');
The axis equal
The grid on
Subplot (222)
Slice (x, y, z, v, [], [2], []);
Shading interp
Colormap (' jet)
Set (gca, 'zdir', 'reverse');
The axis equal
The grid on
Subplot (223)
Slice (x, y, z, v, [], [3], []);
Shading interp
Set (gca, 'zdir', 'reverse');
The axis equal
The grid on
Subplot (224)
Slice (x, y, z, v, [], [4], []);
Shading interp
Set (gca, 'zdir', 'reverse');
The axis equal
The grid on
The h2=figure (2);
Set (h2, the 'name', 'whole space slice', 'MenuBar', 'none', 'the ToolBar', 'none')
Slice (x, y, z, v, [1:2:27], [2, 3, 4], [2, 3, 4, 5])
Shading interp
Colorbar
Colormap (' jet)
Set (gca, 'zdir', 'reverse');
The axis equal
The grid on
Box on
H3=figure (3);
Set (h3, the 'name', 'constant value envelope stereogram', 'MenuBar', 'none', 'the ToolBar', 'none')
Set (GCF, 'InvertHardcopy', 'off')
Fw=150; % % this value as the outer envelope values
Fv=isosurface (x, y, z, v, fw);
P=patch (fv);
Set (p, 'facecolor', 'b', 'edgecolor', 'none');
Patch (isocaps (x, y, z, v, fw), 'FaceColor', 'interp', 'EdgeColor', 'none');
Colorbar
Colormap (' jet)
Box on
,1,1 daspect ([1])
The view (3)
Set (gca, 'zdir', 'reverse', 'color', [0.2, 0.2, 0.2]).
Camlight
Camproj perspective
Lighting phong
The axis equal
The grid on
The title ([' has a value of the outermost surface: ', num2str (fw)]);
Hope you like them
CodePudding user response:
In addition I again hair a plane of outsourcing attentive method, also is the matlab:
X=gallery (' uniformdata, [10, 1], 0).
Y=gallery (' uniformdata, [10, 1], 1);
X=(1, 1, 2, 3, 4, 2, 4.5, 6, 8]
Y=[2, 4, 2, 3, 10; 1; 3.8; 2, 10]
% z=[2, 4, 2, 3, 10; 1; 3.8; 2, 10]
DT=delaunayTriangulation (x, y);
K=convexHull (DT);
Figure
The plot (DT) Points (:, 1), DT. Points (:, 2), 's', 'markersize', 10, 'our linewidth, 3);
Hold on
The plot (DT) Points (k, 1), DT. Points (k, 2), 'r')
Hold off
Share the:
https://www.zhihu.com/tardis/sogou/qus/286312949