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: dlens.m
    path of file: ./repos/hctsa/Toolboxes/OpenTSTOOL/tstoolbox/@core
    
    the code of the file until where you have to start completion: function d = dlens(c, nr)

%tstoolbox/@core/dlens
%   Syntax:

    
function d = dlens(c, nr)

%tstoolbox/@core/dlens
%   Syntax:
%     * d=dlens(c, nr)
%
%   Input Arguments:
%     * c - core object
%
%   returns sizes of dimensions (same as function 'size' under matlab)
%
% Copyright 1997-2001 DPI Goettingen, License http://www.physik3.gwdg.de/tstool/gpl.txt

if nargin == 1
	d = c.dlens;
else
	if nr > ndim(c)
		d = 1;
	else
		d = c.dlens(nr);
	end