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: dispData.m
    path of file: ./repos/chebfun/@chebfun
    
    the code of the file until where you have to start completion: function [name, data] = dispData(f)
%DISPDATA   Useful information for DISPLAY.
%   [NAME, DATA] = DISPDATA(F) collects extra information from the given CHEBFUN
%   F and the output will be used by DISPLAY. 
%
% See also DISPLAY.

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

    
function [name, data] = dispData(f)
%DISPDATA   Useful information for DISPLAY.
%   [NAME, DATA] = DISPDATA(F) collects extra information from the given CHEBFUN
%   F and the output will be used by DISPLAY. 
%
% See also DISPLAY.

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

% Number of pieces (i.e., funs) information:
numFuns = numel(f.funs);

%% Collect information about the exponents:

% Preallocation:
exps = zeros(numFuns, 2);

% Loop over each FUN:
for j = 1:numFuns
    infoJ = dispData(f.funs{j});
    if ( ~isempty(infoJ) )
        numInfo = numel(infoJ);
        for k = 1:numInfo
            infoJK = infoJ{k};
            if ( strcmpi('exponents', infoJK.name) )
                exps(j,:) = infoJK.data;
            end