function [X,Y] = meshdom(x,y)
%MESHDOM Generate X and Y arrays for 3-D plots.
%   This is an obsolete routine.  Use the new MESHGRID instead.
%   Note: MESHGRID produces a Y which is flipud(Y) of the Y from MESHDOM.
%   The usage remains the same and the mesh plots are the same if
%   AXIS IJ  is set for the current axis.
%
%   [X,Y] = MESHDOM(x,y)  transforms the domain specified by vectors
%   x and y into arrays X and Y that can be used for the evaluation
%   of functions of two variables and 3-d mesh and surface plots.
%   The rows of the output array X are copies of the vector x and
%   the columns of the output array Y are copies of the vector y.

%   J. N. Little, 12-2-85; C. B. Moler, 8-20-91.
%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 5.6 $  $Date: 1997/11/21 23:29:12 $

warning('MESHDOM is obsolete.  Use MESHGRID instead.')

% Make sure x is a full row vector and y is a full column vector.
x = full(x(:)).';
y = full(y(:));
X = x(ones(size(y)),:);
y = y(length(y):-1:1);
Y = y(:,ones(size(x)));
