Mercurial > hg > octave-lyh
comparison scripts/plot/ezmesh.m @ 11587:c792872f8942
all script files: untabify and strip trailing whitespace
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:35:29 -0500 |
parents | fd0a3ac60b0e |
children | 5f0bb45e615c |
comparison
equal
deleted
inserted
replaced
11586:12df7854fa7c | 11587:c792872f8942 |
---|---|
24 ## @deftypefnx {Function File} {} ezmesh (@dots{}, 'circ') | 24 ## @deftypefnx {Function File} {} ezmesh (@dots{}, 'circ') |
25 ## @deftypefnx {Function File} {} ezmesh (@var{h}, @dots{}) | 25 ## @deftypefnx {Function File} {} ezmesh (@var{h}, @dots{}) |
26 ## @deftypefnx {Function File} {@var{h} =} ezmesh (@dots{}) | 26 ## @deftypefnx {Function File} {@var{h} =} ezmesh (@dots{}) |
27 ## | 27 ## |
28 ## Plots the mesh defined by a function. @var{f} is a string, inline | 28 ## Plots the mesh defined by a function. @var{f} is a string, inline |
29 ## function or function handle with two arguments defining the function. By | 29 ## function or function handle with two arguments defining the function. By |
30 ## default the plot is over the domain @code{-2*pi < @var{x} < 2*pi} and | 30 ## default the plot is over the domain @code{-2*pi < @var{x} < 2*pi} and |
31 ## @code{-2*pi < @var{y} < 2*pi} with 60 points in each dimension. | 31 ## @code{-2*pi < @var{y} < 2*pi} with 60 points in each dimension. |
32 ## | 32 ## |
33 ## If @var{dom} is a two element vector, it represents the minimum and maximum | 33 ## If @var{dom} is a two element vector, it represents the minimum and maximum |
34 ## value of both @var{x} and @var{y}. If @var{dom} is a four element vector, | 34 ## value of both @var{x} and @var{y}. If @var{dom} is a four element vector, |
35 ## then the minimum and maximum value of @var{x} and @var{y} are specify | 35 ## then the minimum and maximum value of @var{x} and @var{y} are specify |
36 ## separately. | 36 ## separately. |
37 ## | 37 ## |
38 ## @var{n} is a scalar defining the number of points to use in each dimension. | 38 ## @var{n} is a scalar defining the number of points to use in each dimension. |
39 ## | 39 ## |
40 ## If three functions are passed, then plot the parametrically defined | 40 ## If three functions are passed, then plot the parametrically defined |
41 ## function @code{[@var{fx} (@var{s}, @var{t}), @var{fy} (@var{s}, @var{t}), | 41 ## function @code{[@var{fx} (@var{s}, @var{t}), @var{fy} (@var{s}, @var{t}), |
42 ## @var{fz} (@var{s}, @var{t})]}. | 42 ## @var{fz} (@var{s}, @var{t})]}. |
43 ## | 43 ## |
44 ## If the argument 'circ' is given, then the function is plotted over a disk | 44 ## If the argument 'circ' is given, then the function is plotted over a disk |
45 ## centered on the middle of the domain @var{dom}. | 45 ## centered on the middle of the domain @var{dom}. |
46 ## | 46 ## |
47 ## The optional return value @var{h} provides a list of handles to the | 47 ## The optional return value @var{h} provides a list of handles to the |
48 ## the parts of the vector field (body, arrow and marker). | 48 ## the parts of the vector field (body, arrow and marker). |
49 ## | 49 ## |
50 ## @example | 50 ## @example |
51 ## @group | 51 ## @group |
52 ## f = @@(x,y) sqrt(abs(x .* y)) ./ (1 + x.^2 + y.^2); | 52 ## f = @@(x,y) sqrt(abs(x .* y)) ./ (1 + x.^2 + y.^2); |