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: mvpaa_buildROI.m
    path of file: ./repos/automaticanalysis/aa_tools/mvpaa
    
    the code of the file until where you have to start completion: function [ indROI voxels ] = mvpaa_buildROI( centreROI, subROI, brainSize)
%BUILD_ROI Builds an ROI mask
% - The ROI sphere is centred on one central voxel each.
% - The subROI is by default an array with the base indices of an ROI
% centred at [0 0 0], making many of them negative
% - The brainSize is by default a vector with the values for hte 3 dims

    
function [ indROI voxels ] = mvpaa_buildROI( centreROI, subROI, brainSize)
%BUILD_ROI Builds an ROI mask
% - The ROI sphere is centred on one central voxel each.
% - The subROI is by default an array with the base indices of an ROI
% centred at [0 0 0], making many of them negative
% - The brainSize is by default a vector with the values for hte 3 dims

if length(centreROI) ~= 3
    aas_log([],true,'Your ROI centre are not correctly specified')
end