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: spleval.m
    path of file: ./repos/HRTF-Individualization/model/matlabcode/functions/library/regu
    
    the code of the file until where you have to start completion: function points = spleval(f)
%SPLEVAL Evaluation of a spline or spline curve.
%

    
function points = spleval(f)
%SPLEVAL Evaluation of a spline or spline curve.
%
% points = spleval(f)
%
% Computes points on the given spline or spline curve f between
% its extreme breaks.

% Original routine fnplt by C. de Boor / latest change: Oct. 25, 1997
% Simplified by Per Christian Hansen, IMM, 04/16/98.

% Set default number of points.
npoints = 300;

if (f.form(1)=='B'), f = sp2pp(f); end