%% Volume of 3-D Boundary
% Create and plot a set of random 3-D points.

rng('default')
P = rand(30,3);
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

% Copyright 2015 The MathWorks, Inc.