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: rbf_predict.m
    path of file: ./repos/PlatEMO/PlatEMO/Algorithms/Single-objective optimization/SACC-EAM-II
    
    the code of the file until where you have to start completion: function [Yq] = rbf_predict(model, Xtr, Xq)
% RBFPREDICT
% Predicts output values for the given query points Xq using a RBF model
%
% Call
%   [Yq] = rbf_predict(model, Xtr, Xq)
%
% Input
% model     : RBF model
% Xtr       : Inputs of the training data (Xtr(i,:)), i = 1,...,n (the same
%             matrix with which the model was built)
% Xq        : Inputs of query data points (Xq(i,:)), i = 1,...,nq
%
% Output
% Yq        : Predicted outputs of query data points (Yq(i)), i = 1,...,nq
%
% Please give a reference to the software web page in any publication
% describing research performed using the software, e.g. like this:
% Jekabsons G. Radial Basis Function interpolation for Matlab, 2009,
% available at http://www.cs.rtu.lv/jekabsons/

% This source code is tested with Matlab version 7.1 (R14SP3).

% =========================================================================
% RBF interpolation
% Version: 1.1
% Date: August 12, 2009
% Author: Gints Jekabsons (gints.jekabsons@rtu.lv)
% URL: http://www.cs.rtu.lv/jekabsons/

    
function [Yq] = rbf_predict(model, Xtr, Xq)
% RBFPREDICT
% Predicts output values for the given query points Xq using a RBF model
%
% Call
%   [Yq] = rbf_predict(model, Xtr, Xq)
%
% Input
% model     : RBF model
% Xtr       : Inputs of the training data (Xtr(i,:)), i = 1,...,n (the same
%             matrix with which the model was built)
% Xq        : Inputs of query data points (Xq(i,:)), i = 1,...,nq
%
% Output
% Yq        : Predicted outputs of query data points (Yq(i)), i = 1,...,nq
%
% Please give a reference to the software web page in any publication
% describing research performed using the software, e.g. like this:
% Jekabsons G. Radial Basis Function interpolation for Matlab, 2009,
% available at http://www.cs.rtu.lv/jekabsons/

% This source code is tested with Matlab version 7.1 (R14SP3).

% =========================================================================
% RBF interpolation
% Version: 1.1
% Date: August 12, 2009
% Author: Gints Jekabsons (gints.jekabsons@rtu.lv)
% URL: http://www.cs.rtu.lv/jekabsons/
%
% Copyright (C) 2009  Gints Jekabsons
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
% =========================================================================

if nargin < 3
    error('Too few input arguments.');
end