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: point_vals.m
    path of file: ./repos/ExploreASL/External/SPMmodified/@slover
    
    the code of the file until where you have to start completion: function vals = point_vals(obj, XYZmm, holdlist)
% Return values from all the images at points given in XYZmm
% FORMAT vals = point_vals(obj, XYZmm, holdlist)
%

    
function vals = point_vals(obj, XYZmm, holdlist)
% Return values from all the images at points given in XYZmm
% FORMAT vals = point_vals(obj, XYZmm, holdlist)
%
% (for the following,  I is number of images in object, N is the number
% of points to resample from)
% Input
% obj         - object
% XYZmm       - 3xN XYZ natrix of points (in mm)
% holdlist    - optional 1xI vector of resample hold values
%
% Outputs
% vals        - IxN vector of values in images
%__________________________________________________________________________

% Matthew Brett
% $Id: point_vals.m 6623 2015-12-03 18:38:08Z guillaume $

if nargin < 2
    error('Need XYZmm');
end