comparison scripts/plot/mesh.m @ 11101:1f9ab076f5f7

Include the 4 input (color) in the docstrings for mesh() and surf().
author Ben Abbott <bpabbott@mac.com>
date Sun, 17 Oct 2010 23:33:55 +0800
parents 5c121a8b40b5
children dc983f92e774
comparison
equal deleted inserted replaced
11100:cdf940db26a0 11101:1f9ab076f5f7
16 ## You should have received a copy of the GNU General Public License 16 ## You should have received a copy of the GNU General Public License
17 ## along with Octave; see the file COPYING. If not, see 17 ## along with Octave; see the file COPYING. If not, see
18 ## <http://www.gnu.org/licenses/>. 18 ## <http://www.gnu.org/licenses/>.
19 19
20 ## -*- texinfo -*- 20 ## -*- texinfo -*-
21 ## @deftypefn {Function File} {} mesh (@var{x}, @var{y}, @var{z}) 21 ## @deftypefn {Function File} {} mesh (@var{x}, @var{y}, @var{z})
22 ## @deftypefnx {Function File} {} mesh (@var{z})
23 ## @deftypefnx {Function File} {} mesh (@dots{}, @var{c})
24 ## @deftypefnx {Function File} {} mesh (@var{hax}, @dots{})
25 ## @deftypefnx {Function File} {@var{h} = } mesh (@dots{})
22 ## Plot a mesh given matrices @var{x}, and @var{y} from @code{meshgrid} and 26 ## Plot a mesh given matrices @var{x}, and @var{y} from @code{meshgrid} and
23 ## a matrix @var{z} corresponding to the @var{x} and @var{y} coordinates of 27 ## a matrix @var{z} corresponding to the @var{x} and @var{y} coordinates of
24 ## the mesh. If @var{x} and @var{y} are vectors, then a typical vertex 28 ## the mesh. If @var{x} and @var{y} are vectors, then a typical vertex
25 ## is (@var{x}(j), @var{y}(i), @var{z}(i,j)). Thus, columns of @var{z} 29 ## is (@var{x}(j), @var{y}(i), @var{z}(i,j)). Thus, columns of @var{z}
26 ## correspond to different @var{x} values and rows of @var{z} correspond 30 ## correspond to different @var{x} values and rows of @var{z} correspond
27 ## to different @var{y} values. 31 ## to different @var{y} values.
28 ## @seealso{meshgrid, contour} 32 ##
33 ## The color of the mesh is derirved from the @code{colormap}
34 ## and the value of @var{z}. Optionally the color of the mesh can be
35 ## specified independent of of @var{z}, by adding a fourth matrix, @var{c}.
36 ## @seealso{colormap, contour, meshgrid, surf}
29 ## @end deftypefn 37 ## @end deftypefn
30 38
31 ## Author: jwe 39 ## Author: jwe
32 40
33 function h = mesh (varargin) 41 function h = mesh (varargin)