www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/VolumeOf3DBoundaryExample.m
%% Volume of 3-D Boundary % Create and plot a set of random 3-D points. % Copyright 2015 The MathWorks, Inc. P = gallery('uniformdata',30,3,1); plot3(P(:,1),P(:,2),P(:,3),'.') grid on %% % Use the |boundary| function to compute a boundary around the points, and % find the volume of the resulting shape. [~, vol] = boundary(P); vol