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: xASL_io_RepairPhilipsASL.m
    path of file: ./repos/ExploreASL/WorkInProgress/InputOutput
    
    the code of the file until where you have to start completion: function xASL_io_RepairPhilipsASL(InPath)
%xASL_im_RepairPhilipsASL Performs correction of Philips slice-time order
%from dcm2nii. Make sure to backup the ASL file first


    
function xASL_io_RepairPhilipsASL(InPath)
%xASL_im_RepairPhilipsASL Performs correction of Philips slice-time order
%from dcm2nii. Make sure to backup the ASL file first

    tIM     = xASL_io_Nifti2Im(InPath);
    cIM     = zeros(size(tIM));

    sliceHalf = size(tIM,3)/2;
    timeHalf = size(tIM,4)/2;
    cIM(:,:,1:2:end