comparison scripts/general/interp1.m @ 10846:a4f482e66b65

Grammarcheck more of the documentation. Use @noindent macro appropriately. Limit line length to 80 characters.
author Rik <octave@nomad.inbox5.com>
date Sun, 01 Aug 2010 20:22:17 -0700
parents 693e22af08ae
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
10845:c0ffe159ba1a 10846:a4f482e66b65
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} {@var{yi} =} interp1 (@var{x}, @var{y}, @var{xi}) 21 ## @deftypefn {Function File} {@var{yi} =} interp1 (@var{x}, @var{y}, @var{xi})
22 ## @deftypefnx {Function File} {@var{yi} =} interp1 (@var{y}, @var{xi}) 22 ## @deftypefnx {Function File} {@var{yi} =} interp1 (@var{y}, @var{xi})
23 ## @deftypefnx {Function File} {@var{yi} =} interp1 (@dots{}, @var{method}) 23 ## @deftypefnx {Function File} {@var{yi} =} interp1 (@dots{}, @var{method})
24 ## @deftypefnx {Function File} {@var{yi} =} interp1 (@dots{}, @var{extrap}) 24 ## @deftypefnx {Function File} {@var{yi} =} interp1 (@dots{}, @var{extrap})
25 ## @deftypefnx {Function File} {@var{pp} =} interp1 (@dots{}, 'pp') 25 ## @deftypefnx {Function File} {@var{pp} =} interp1 (@dots{}, 'pp')
26 ## 26 ##
27 ## One-dimensional interpolation. Interpolate @var{y}, defined at the 27 ## One-dimensional interpolation. Interpolate @var{y}, defined at the
28 ## points @var{x}, at the points @var{xi}. The sample points @var{x} 28 ## points @var{x}, at the points @var{xi}. The sample points @var{x}
29 ## must be monotonic. If not specified, @var{x} is taken to be the 29 ## must be monotonic. If not specified, @var{x} is taken to be the
30 ## indices of @var{y}. If @var{y} is an array, treat the columns 30 ## indices of @var{y}. If @var{y} is an array, treat the columns
31 ## of @var{y} separately. 31 ## of @var{y} separately.
32 ## 32 ##
33 ## Method is one of: 33 ## Method is one of:
34 ## 34 ##
35 ## @table @asis 35 ## @table @asis
38 ## 38 ##
39 ## @item 'linear' 39 ## @item 'linear'
40 ## Linear interpolation from nearest neighbors 40 ## Linear interpolation from nearest neighbors
41 ## 41 ##
42 ## @item 'pchip' 42 ## @item 'pchip'
43 ## Piece-wise cubic hermite interpolating polynomial 43 ## Piece-wise cubic Hermite interpolating polynomial
44 ## 44 ##
45 ## @item 'cubic' 45 ## @item 'cubic'
46 ## Cubic interpolation from four nearest neighbors 46 ## Cubic interpolation from four nearest neighbors
47 ## 47 ##
48 ## @item 'spline' 48 ## @item 'spline'