%volume - Volume of elements of a 3-D mesh
%
%   V = volume(MSH) returns the volume of the entire mesh.
%
%   [V, VE] = volume(MSH) returns the volume of the entire mesh and the 
%   volume of each individual element of the mesh.
%
%   V = volume(MSH, E) returns the total volume of the specified elements.
%
%
% Input Arguments
% ---------------
%   MSH -- FEMesh object
%   E -- Element IDs, specified as a scalar or matrix
%
% Output Arguments
% ----------------
%   V -- Volume of the mesh
%   VE -- Volumes of individual elements
%
%
% Examples
% --------
%
%   % Find the volume of a 3-D Mesh
%   pdem = createpde()
%   pdem.importGeometry('BracketWithHole.stl')
%   msh = generateMesh(pdem)
%   pdemesh(pdem)
%   mv = volume(msh);
%
%
% See also pde.FEMesh, pde.FEMesh/meshQuality, pde.FEMesh/area

% Copyright 2017 The MathWorks, Inc.
