function varargout = contour3m(varargin)

%CONTOUR3M  Project a 3D contour plot of data onto the current map axes
%
%  CONTOUR3M(lat,lon,map) produces a 3D contour plot of map data projected
%  onto the current map axes.  The input latitude and longitude vectors
%  can be the size of map (as in a general matrix map), or can specify the 
%  corresponding row and column dimensions for the map.
%
%  CONTOUR3M(map,maplegend) produces a contour plot of map data in a 
%  regular matrix map.
%
%  CONTOUR3M(lat,lon,map,'LineSpec') uses any valid LineSpec string
%  to draw the contour lines.
%
%  CONTOUR3M(lat,lon,map,'PropertyName',PropertyValue,...) uses the
%  line properties specified to draw the contours.
%
%  CONTOUR3M(lat,lon,map,n,...) draws n contour levels, where n is a scalar.
%
%  CONTOUR3M(lat,lon,map,v,...) draws contours at the levels specified
%  by the input vector v.
%
%  CONTOUR3M(map,maplegend,...) takes any of the optional arguments 
%  described above.
%
%  c = CONTOUR3M(...) returns a standard contour matrix, with the first
%  row representing longitude data and the second row represents
%  latitude data.
%
%  [c,h] = CONTOUR3M(...) returns the contour matrix and the handles
%  to the contour lines drawn.
%
%  CONTOUR3M, without any inputs, will activate a GUI to project contour
%  lines onto the current map axes.
%
%  See also CONTOURM, CONTOUR, PLOT

%  Copyright 1996-2000 Systems Planning and Analysis, Inc. and The MathWorks, Inc.
%  Written by:  W. Stumpf
%  $Revision: 1.2 $    $Date: 2000/01/18 02:02:54 $

% This is a pass-through to CONTOR3M. Created because we no longer contrain function names to 8+3,


switch nargout
case 0
   contor3m(varargin{:});
case 1
   varargout = cell(1);
   varargout{1} = contor3m(varargin{:});
case 2
   varargout = cell(1,2);
   [varargout{1},varargout{2}] = contor3m(varargin{:});
end