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: norms.m
    path of file: ./repos/chebfun/@chebmatrix
    
    the code of the file until where you have to start completion: function normA = norms(A, n)
%NORMS   Norms of elements in a CHEBMATRIX object.
%   NORMS(A) computes the Frobenius norm of each element in the CHEBMATRIX
%   object A and returns a matrix the same size as A.
%
%   NORMS(A, 2) or NORMS(A, 'fro') is the same as above.
%
%   NORMS(A, INF) computes the infinity norm of each element in the CHEBMATRIX A.
%
% See also CHEBMATRIX/NORM, CHEBFUN/NORM.

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

% [TODO]: Add support for norms of operators (inf x inf blocks).

% Empty CHEBMATRIX has norm 0.

    
function normA = norms(A, n)
%NORMS   Norms of elements in a CHEBMATRIX object.
%   NORMS(A) computes the Frobenius norm of each element in the CHEBMATRIX
%   object A and returns a matrix the same size as A.
%
%   NORMS(A, 2) or NORMS(A, 'fro') is the same as above.
%
%   NORMS(A, INF) computes the infinity norm of each element in the CHEBMATRIX A.
%
% See also CHEBMATRIX/NORM, CHEBFUN/NORM.

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

% [TODO]: Add support for norms of operators (inf x inf blocks).

% Empty CHEBMATRIX has norm 0.
if ( isempty(A) )
    normA = 0;
    return
end