function r = true(m,n)
% Embedded MATLAB Library function.
%
% Limitations:
% No support for N-D matrices with N>2.

% Copyright 2002-2004 The MathWorks, Inc.

if nargin < 1
    r = logical(1);
elseif nargin == 1
    % The use of a temporary is a kludge to avoid an automatic 
    % replacement of logical(ones(...)) by true(...) in MATLAB.
    tmp1 = ones(m);
    r = logical(tmp1);
else
    tmp2 = ones(m,n);
    r = logical(tmp2);
end
