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: length.m
    path of file: ./repos/chebfun/@singfun
    
    the code of the file until where you have to start completion: function len = length(f)
%LENGTH   Length of a SINGFUN.
%   LENGTH(F) is the length of the smooth part contained in F.

    
function len = length(f)
%LENGTH   Length of a SINGFUN.
%   LENGTH(F) is the length of the smooth part contained in F.
%
% See also SIZE.

% Copyright 2017 by The University of Oxford and The Chebfun Developers. 
% See http://www.chebfun.org/ for Chebfun information.

% The length of a SINGFUN object is the length of its smooth part:
len = length(f.smoothPart);

end