function varargout = contourm(varargin)

%CONTOURM  Project a contour plot of data onto the current map axes
%
%  CONTOURM(lat,lon,map) produces a 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.
%
%  CONTOURM(map,maplegend) produces a contour plot of map data in a 
%  regular matrix map.
%
%  CONTOURM(lat,lon,map,'LineSpec') uses any valid LineSpec string
%  to draw the contour lines.
%
%  CONTOURM(lat,lon,map,'PropertyName',PropertyValue,...) uses the
%  line properties specified to draw the contours.
%
%  CONTOURM(lat,lon,map,n,...) draws n contour levels, where n is a scalar.
%
%  CONTOURM(lat,lon,map,v,...) draws contours at the levels specified
%  by the input vector v.
%
%  CONTOURM(map,maplegend,...) takes any of the optional arguments 
%  described above.
%
%  c = CONTOURM(...) returns a standard contour matrix, with the first
%  row representing longitude data and the second row represents
%  latitude data.
%
%  [c,h] = CONTOURM(...) returns the contour matrix and the handles
%  to the contour lines drawn.
%
%  CONTOURM, without any inputs, will activate a GUI to project contour
%  lines onto the current map axes.
%
%  See also CONTOR3M, 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:56 $

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


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