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: mkltrnlsset.m
    path of file: ./repos/OPTI/Utilities/opti
    
    the code of the file until where you have to start completion: function options = mkltrnlsset(varargin)
%MKLTRNLSSET  Create or alter the options for Optimization with MKLTRNLS
%
% options = mkltrnlsset('param1',value1,'param2',value2,...) creates an MKLTRNLS
% options structure with the parameters 'param' set to their correspondi
    
function checkfield(field,value)
%Check a field contains correct data type
switch lower(field)
    %Scalar non negative double
    case {'toltr','tolsnglr','tolstep','tolstepprec'}
        err = opticheckval.checkScalarNonNeg(value,field);  
    case {'trialstepsize'}
        err = opticheckval.checkScalarBoundLLE(value,field,0,100);  
    otherwise  
        err = MException('OPTI:SetFieldError','Unrecognized parameter name ''%s''.', field);
end