comparison scripts/plot/contour.m @ 6547:4fb053f24fd6

[project @ 2007-04-19 21:47:40 by jwe]
author jwe
date Thu, 19 Apr 2007 21:47:41 +0000
parents 98ee80702bca
children c2b700808e0a
comparison
equal deleted inserted replaced
6546:44a4f68fbd76 6547:4fb053f24fd6
16 ## along with Octave; see the file COPYING. If not, write to the Free 16 ## along with Octave; see the file COPYING. If not, write to the Free
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 ## 02110-1301, USA. 18 ## 02110-1301, USA.
19 19
20 ## -*- texinfo -*- 20 ## -*- texinfo -*-
21 ## @deftypefn {Function File} {} {@var{c}} = contour (@var{x},@var{y},@var{z},@var{vv}) 21 ## @deftypefn {Function File} {} {@var{c} =} contour (@var{x}, @var{y}, @var{z}, @var{vv})
22 ## Compute isolines (countour lines) of the matrix @var{z}. 22 ## Compute isolines (countour lines) of the matrix @var{z}.
23 ## parameters @var{x}, @var{y} and @var{vn} are optional. 23 ## parameters @var{x}, @var{y} and @var{vn} are optional.
24 ## 24 ##
25 ## The return value @var{c} is a 2 by @var{n} matrix containing the 25 ## The return value @var{c} is a 2 by @var{n} matrix containing the
26 ## contour lines in the following format 26 ## contour lines in the following format
27 ## 27 ##
28 ## @example 28 ## @example
29 ## @var{c} = [lev1 , x1 , x2 , ... , levn , x1 , x2 , ... 29 ## @var{c} = [lev1, x1, x2, ..., levn, x1, x2, ...
30 ## len1 , y1 , y2 , ... , lenn , y1 , y2 , ... ] 30 ## len1, y1, y2, ..., lenn, y1, y2, ...]
31 ## @end example 31 ## @end example
32 ## 32 ##
33 ## @noindent 33 ## @noindent
34 ## in which contour line @var{n} has a level (height) of @var{levn} and 34 ## in which contour line @var{n} has a level (height) of @var{levn} and
35 ## length of @var{lenn}. 35 ## length of @var{lenn}.
39 ## lines to compute or a vector containing the values of the lines. If 39 ## lines to compute or a vector containing the values of the lines. If
40 ## only one value is wanted, set @code{@var{vn} = [val, val]}. If 40 ## only one value is wanted, set @code{@var{vn} = [val, val]}. If
41 ## @var{vn} is omitted it defaults to 10. 41 ## @var{vn} is omitted it defaults to 10.
42 ## 42 ##
43 ## @example 43 ## @example
44 ## @var{c}=contourc (@var{x}, @var{y}, @var{z}, linspace(0,2*pi,10)) 44 ## levels = linspace (0, 2*pi, 10);
45 ## @var{c} = contourc (@var{x}, @var{y}, @var{z}, levels);
45 ## @end example 46 ## @end example
46 ## @seealso{contourc,line,plot} 47 ## @seealso{contourc, line, plot}
47 ## @end deftypefn 48 ## @end deftypefn
48 49
49 ## Author: shaia 50 ## Author: shaia
50 51
51 function retval = contour (varargin) 52 function retval = contour (varargin)