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: cat_vol_resize.m
    path of file: ./repos/ExploreASL/External/SPMmodified/toolbox/cat12
    
    the code of the file until where you have to start completion: function varargout=cat_vol_resize(T,operation,varargin)
% ______________________________________________________________________
% 
%   varargout=cat_vol_resize(T,operation,varargin)
%
% Examples:
%
% - Resizing to half image resolution 
%
%
% - Resizing of image resolution to a lower and more isotropic resolution:

    
function varargout=cat_vol_resize(T,operation,varargin)
% ______________________________________________________________________
% 
%   varargout=cat_vol_resize(T,operation,varargin)
%
% Examples:
%
% - Resizing to half image resolution 
%
%
% - Resizing of image resolution to a lower and more isotropic resolution:
%   [TIr,TIGr,Br,Gr,resTr] = cat_vol_resize({TI,TIG,single(B),G./TI},'reduceV',vx_vol,2,64); 
%   TV = cat_vol_resize(TV,'dereduceV',resT);
%
% - Removing/readding of background:
%   [Tr,BB] = cat_vol_resize(T ,'reduceBrain'  ,vx_vol,10);      
%    T      = cat_vol_resize(Tr,'dereduceBrain',BB);
%
% - Interpolation for low slice resolution to obtain an more isotropic resolution
%   [Tr,aniso] = cat_vol_resize(T ,'aniso2iso',vx_vol,method);         
%   TV         = cat_vol_resize(Tr,'iso2aniso',aniso,method);  
% ______________________________________________________________________
% Robert Dahnke
% Structural Brain Mapping Group
% University Jena
% ______________________________________________________________________
% $Id: cat_vol_resize.m 1377 2018-10-18 14:04:15Z dahnke $ 
  
  if nargin==0, help cat_vol_resize; return; end