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: UKSRtest.m
    path of file: ./repos/MatlabFunc/SubspaceLearning
    
    the code of the file until where you have to start completion: function [feaNew] = UKSRtest(fea, d, model)
% UKSRtest: Unsupervised Kernel Spectral Regression Testing
%               UKSRtest uses KSR as a dimensionality reduction tool. 
%
%       [feaNew,elapse] = UKSRtest(fea, d, model);
% 
%             Input:
%
%               fea     - data matrix. Each row is a data point. 
%                d      - the reduced dimensions. d should not be larger
%                         than options.ReducedDim calling USRtrain.m
%             model     - model trained by UKSRtrain.m 
%
%             Output:
%             
%             feaNew    - The data in the d-dimensional KSR subspace.
%
%    Examples:
%
%
% See also UKSRtrain, KSR, KSR_caller
%
%Reference:
%
%   [1] Deng Cai, "Spectral Regression: A Regression Framework for
%   Efficient Regularized Subspace Learning", PhD Thesis, Department of
%   Computer Science, UIUC, 2009.   
%

    
function [feaNew] = UKSRtest(fea, d, model)
% UKSRtest: Unsupervised Kernel Spectral Regression Testing
%               UKSRtest uses KSR as a dimensionality reduction tool. 
%
%       [feaNew,elapse] = UKSRtest(fea, d, model);
% 
%             Input:
%
%               fea     - data matrix. Each row is a data point. 
%                d      - the reduced dimensions. d should not be larger
%                         than options.ReducedDim calling USRtrain.m
%             model     - model trained by UKSRtrain.m 
%
%             Output:
%             
%             feaNew    - The data in the d-dimensional KSR subspace.
%
%    Examples:
%
%
% See also UKSRtrain, KSR, KSR_caller
%
%Reference:
%
%   [1] Deng Cai, "Spectral Regression: A Regression Framework for
%   Efficient Regularized Subspace Learning", PhD Thesis, Department of
%   Computer Science, UIUC, 2009.   
%
%
%   version 3.0 --Jan/2012
%   version 2.0 --December/2011
%   version 1.0 --May/2006 
%
%   Written by Deng Cai (dengcai AT gmail.com)
%


MAX_MATRIX_SIZE = 8000; % You can change this number based on your memory.

if ~strcmp(model.TYPE,'UKSR')
    error('model does not match!');
end