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: spm_get_data.m
    path of file: ./repos/malini/Codes/deconvolution - model/spm8
    
    the code of the file until where you have to start completion: function [Y] = spm_get_data(V,XYZ,check)

    
function [Y] = spm_get_data(V,XYZ,check)
% gets data from image files at specified locations
% FORMAT [Y] = spm_get_data(V,XYZ);
%
% V     - [1 x n] struct array of file handles (or filename matrix)
% XYZ   - [4 x m] or [3 x m] location matrix (voxel)
% check - check validity of input parameters [default: true]
%
% Y     - (n x m) double values
%
% see spm_sample_vol
%__________________________________________________________________________
% Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging

% Karl Friston
% $Id: spm_get_data.m 3950 2010-06-28 10:44:02Z guillaume $

if nargin < 3, check = true; end