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: nii_resize_batch.m
    path of file: ./repos/bspm/thirdparty/nii_tools
    
    the code of the file until where you have to start completion: function nii_resize_batch;
% Resize many images
%
%YOU CAN EDIT SUBJ TO BE LIST OF ALL IMAGES...
%  subj = strvcat('/usr/a/im1.nii','/usr/a/im2.nii','/usr/a/im3.nii');


    
function nii_resize_batch;
% Resize many images
%
%YOU CAN EDIT SUBJ TO BE LIST OF ALL IMAGES...
%  subj = strvcat('/usr/a/im1.nii','/usr/a/im2.nii','/usr/a/im3.nii');


%select files with a dialog
    subj = spm_select(inf,'image','Select images to compute resize');

 for i=1:size(subj,1)

   nii_resize_img(deblank(subj(i,:)),[2 2 2],[  -78 -112  -50;  78   76  85]);

end