function obj = ctranspose(obj)
%' Complex conjugate transpose.
%   E = D'
%   E = CTRANSPOSE(D)
%   
%   If D has dimension labels, its first and second dimension
%   must have the same label.
%
%   Transposition is done implicitly, and only directly computed
%   if necessary for other operations.
%
%   See also CTRANSPOSE, DLARRAY.

%   Copyright 2019-2021 The MathWorks, Inc.

if ndims(obj) > 2 %#ok<ISMAT>
    error(message('MATLAB:transpose:NDArray'));
end

obj = conj(permute(obj, [2 1]));

end
