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: cdr.m
    path of file: ./repos/chebfun/@spherefun
    
    the code of the file until where you have to start completion: function varargout = cdr(varargin)
%CDR decomposition of a SPHEREFUN.
%   [C,D,R] = CDR(F) produces a diagonal matrix D of size length(F) by
%   length(F) and quasimatrices C and R of size inf by length(F) such that
%   f(lambda,theta) = C(theta,:) * D * R(lambda,:)'.
%
%   D = CDR(F) returns a vector containing the pivot values used in the
%   construction of F.
%
% See also SPHEREFUN/PIVOTS, SPHEREFUN/SVD. 


    
function varargout = cdr(varargin)
%CDR decomposition of a SPHEREFUN.
%   [C,D,R] = CDR(F) produces a diagonal matrix D of size length(F) by
%   length(F) and quasimatrices C and R of size inf by length(F) such that
%   f(lambda,theta) = C(theta,:) * D * R(lambda,:)'.
%
%   D = CDR(F) returns a vector containing the pivot values used in the
%   construction of F.
%
% See also SPHEREFUN/PIVOTS, SPHEREFUN/SVD. 

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

[varargout{1:nargout}] = cdr@separableApprox(varargin{:});

end