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: matrix_eval_function.m
    path of file: ./repos/CanlabCore/CanlabCore/Statistics_tools
    
    the code of the file until where you have to start completion: function varargout = matrix_eval_function(Y,fhandle,varargin)
% Evaluate any arbitrary function fhandle on each column of an input matrix Y
%
% :Usage:
% ::
%
%     varargout = matrix_eval_function(Y,fhandle,varargin)
%
% evaluate fhandle on paired columns of X and Y
%
% fhandle is a function handle:
% ::
%

    
function varargout = matrix_eval_function(Y,fhandle,varargin)
% Evaluate any arbitrary function fhandle on each column of an input matrix Y
%
% :Usage:
% ::
%
%     varargout = matrix_eval_function(Y,fhandle,varargin)
%
% evaluate fhandle on paired columns of X and Y
%
% fhandle is a function handle:
% ::
%
%    fhandle = @(variable inputs) fit_gls(variable_input,fixed_inputs);
%    fhandle = @(y) fit_gls(y,X,c,p,PX);
%
% Function is fhandle should return (multiple possible) outputs, each
% in a row vector.  Matrix outputs of this function are Y-cols x output
% values for each output argument.
%
% :Example: Generalized least squares fitting on 100 Y-variables, same X
% ::
%
%    y = rand(100,100); X = y + rand(100,1); X(:,end