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: snpm_clone_vol.m
    path of file: ./repos/bspm/thirdparty/spm12/toolbox/SnPM13
    
    the code of the file until where you have to start completion: function V = snpm_clone_vol(Vtemplate, fname, descrip)
% Clone volume based on a template
% FORMAT V = snpm_clone_vol(Vtemplate, fname, descrip)
%
% Vtemplate ...
%_______________________________________________________________________

    
function V = snpm_clone_vol(Vtemplate, fname, descrip)
% Clone volume based on a template
% FORMAT V = snpm_clone_vol(Vtemplate, fname, descrip)
%
% Vtemplate ...
%_______________________________________________________________________
% Copyright (C) 2013 The University of Warwick
% Id: snpm_clone_vol.m  SnPM13 2013/10/12
% Thomas Nichols

V        = Vtemplate;
V        = rmfield(V,{'fname','descrip','n','private'});
V.fname  = fname;
V.dim    = V.dim(1:3);
V.dt     = [spm_type('float64'), spm_platform('bigend