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: computeVoxelVolumes.m
    path of file: ./repos/OMEGA/source
    
    the code of the file until where you have to start completion: function [V,Vmax,bmin,bmax] = computeVoxelVolumes(dx,dy,dz,options)
%COMPUTEVOXELVOLUMES Computes the voxel volumes for the spherical voxels in
%THOR algorithm
%   Utility function
% Compute the various volumes available for the spherical voxels in
% volume-based ray tracer. Basically establishes a look-up-table.
if options.projector_type == 3
    dp = max([dx,dy,dz]);
    options.voxel_radius = sqrt(2) * options.voxel_radius * (dp / 2);
    bmax = options.tube_radius + options.voxel_radius;
    b = linspace(0, bmax, 10000)';

    
function [V,Vmax,bmin,bmax] = computeVoxelVolumes(dx,dy,dz,options)
%COMPUTEVOXELVOLUMES Computes the voxel volumes for the spherical voxels in
%THOR algorithm
%   Utility function
% Compute the various volumes available for the spherical voxels in
% volume-based ray tracer. Basically establishes a look-up-table.
if options.projector_type == 3
    dp = max([dx,dy,dz]);
    options.voxel_radius = sqrt(2) * options.voxel_radius * (dp / 2);
    bmax = options.tube_radius + options.voxel_radius;
    b = linspace(0, bmax, 10000)';
    b(options.tube_radius > (b + options.voxel_radius)) = [];
    b = unique(round(b*10^3)/10^3);
    V = volumeIntersection(options.tube_radius, options.voxel_radius, b);
    diffis = [diff(V);0];
    b = b(diffis <= 0);
    V = abs(V(diffis <= 0));
    Vmax = (4*pi)/3*options.voxel_radius^3;
    bmin = min(b);
else
    V = 0;
    Vmax = 0;
    bmin = 0;
    bmax = 0;
end