Mercurial > octave-libtiff
comparison scripts/plot/draw/peaks.m @ 19596:0e1f5a750d00
maint: Periodic merge of gui-release to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 20 Jan 2015 10:24:46 -0500 |
parents | d59d052c9858 446c46af4b42 |
children | 4197fc428c7d |
comparison
equal
deleted
inserted
replaced
19592:37d37297acf8 | 19596:0e1f5a750d00 |
---|---|
37 ## @end verbatim | 37 ## @end verbatim |
38 ## @end ifnottex | 38 ## @end ifnottex |
39 ## | 39 ## |
40 ## Called without a return argument, @code{peaks} plots the surface of the | 40 ## Called without a return argument, @code{peaks} plots the surface of the |
41 ## above function using @code{surf}. | 41 ## above function using @code{surf}. |
42 ## | 42 ## |
43 ## If @var{n} is a scalar, @code{peaks} plots the value of the above | 43 ## If @var{n} is a scalar, @code{peaks} plots the value of the above |
44 ## function on an @var{n}-by-@var{n} mesh over the range [-3,3]. The | 44 ## function on an @var{n}-by-@var{n} mesh over the range [-3,3]. The |
45 ## default value for @var{n} is 49. | 45 ## default value for @var{n} is 49. |
46 ## | 46 ## |
47 ## If @var{n} is a vector, then it represents the grid values over which | 47 ## If @var{n} is a vector, then it represents the grid values over which |
49 ## the function value is calculated over the specified grid of vertices. | 49 ## the function value is calculated over the specified grid of vertices. |
50 ## | 50 ## |
51 ## When called with output arguments, return the data for the function | 51 ## When called with output arguments, return the data for the function |
52 ## evaluated over the meshgrid. This can subsequently be plotted with | 52 ## evaluated over the meshgrid. This can subsequently be plotted with |
53 ## @code{surf (@var{x}, @var{y}, @var{z})}. | 53 ## @code{surf (@var{x}, @var{y}, @var{z})}. |
54 ## | 54 ## |
55 ## @seealso{sombrero, meshgrid, mesh, surf} | 55 ## @seealso{sombrero, meshgrid, mesh, surf} |
56 ## @end deftypefn | 56 ## @end deftypefn |
57 | 57 |
58 ## Expression for the peaks function was taken from the following paper: | 58 ## Expression for the peaks function was taken from the following paper: |
59 ## http://www.control.hut.fi/Kurssit/AS-74.115/Material/GENALGgoga.pdf | 59 ## http://www.control.hut.fi/Kurssit/AS-74.115/Material/GENALGgoga.pdf |