You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: integrate_data.m
    path of file: ./repos/fem_mesh_matlab/fem_mesh_utils
    
    the code of the file until where you have to start completion: function data_int = integrate_data(geom, int)
%INTEGRATE_DATA Compute different integrals (flux, scalar, etc.) on the geometry.
%   data_int = INTEGRATE_DATA(geom, int)
%   geom - parsed mesh data (struct)
%   int 
    
function data_extract = get_component_volume(geom, data)
%GET_COMPONENT_EDGE Get the value of the data for the volume tetrahedrons (average of the vertice values).
%   data_extract = GET_COMPONENT_EDGE(geom, data)
%   geom - parsed mesh data (struct)
%   data - parsed data (matrix of float)
%   data_extract - extract data for the geometrical feature (matrix of float)

assert(size(data,1)==geom.n, 'invalid data length')
data_1 = data(geom.tri(:,1), :);
data_2 = data(geom.tri(:,2), :);
data_3 = data(geom.tri(:,3), :);
data_4 = data(geom.tri(:,4), :);
data_extract = (data_1+data_2+data_3+data_4)./4;

end