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: svd.m
    path of file: ./repos/chebfun/@separableApprox
    
    the code of the file until where you have to start completion: function varargout = svd( f )
%SVD    Singular value decomposition of a SEPARABLEAPPROX.
%   SVD(F) returns the singular values of F. The number of singular values
%   returned is equal to the rank of the SEPARABLEAPPROX.
%
%   S = SVD(F) returns the singular values of F. S is a vector of singular
%   values in decreasing order.
%
%   [U, S, V] = SVD(F) returns the SVD of F. U and V are quasi-matrices of
%   orthogonal CHEBFUN objects and S is a diagonal matrix with the singular
%   values on the diagonal.
%
%   The length and rank of a SEPARABLEAPPROX are slightly different quantities.
%   LENGTH(F) is the number of pivots used by the constructor, and
%   RANK(F) is the number of significant singular values of F. The relation

    
function varargout = svd( f )
%SVD    Singular value decomposition of a SEPARABLEAPPROX.
%   SVD(F) returns the singular values of F. The number of singular values
%   returned is equal to the rank of the SEPARABLEAPPROX.
%
%   S = SVD(F) returns the singular values of F. S is a vector of singular
%   values in decreasing order.
%
%   [U, S, V] = SVD(F) returns the SVD of F. U and V are quasi-matrices of
%   orthogonal CHEBFUN objects and S is a diagonal matrix with the singular
%   values on the diagonal.
%
%   The length and rank of a SEPARABLEAPPROX are slightly different quantities.
%   LENGTH(F) is the number of pivots used by the constructor, and
%   RANK(F) is the number of significant singular values of F. The relation
%   RANK(F) <= LENGTH(F) should always hold.

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

% Empty check:
if ( isempty( f ) )
    varargout = { chebfun, [], chebfun };
    return
end