comparison scripts/geometry/griddata.m @ 10549:95c3e38098bf

Untabify .m scripts
author Rik <code@nomad.inbox5.com>
date Fri, 23 Apr 2010 11:28:50 -0700
parents 479536c5bb10
children be55736a0783
comparison
equal deleted inserted replaced
10548:479536c5bb10 10549:95c3e38098bf
28 ## The interpolation method can be @code{"nearest"}, @code{"cubic"} or 28 ## The interpolation method can be @code{"nearest"}, @code{"cubic"} or
29 ## @code{"linear"}. If method is omitted it defaults to @code{"linear"}. 29 ## @code{"linear"}. If method is omitted it defaults to @code{"linear"}.
30 ## @seealso{delaunay} 30 ## @seealso{delaunay}
31 ## @end deftypefn 31 ## @end deftypefn
32 32
33 ## Author: Kai Habel <kai.habel@gmx.de> 33 ## Author: Kai Habel <kai.habel@gmx.de>
34 ## Adapted-by: Alexander Barth <barth.alexander@gmail.com> 34 ## Adapted-by: Alexander Barth <barth.alexander@gmail.com>
35 ## xi and yi are not "meshgridded" if both are vectors 35 ## xi and yi are not "meshgridded" if both are vectors
36 ## of the same size (for compatibility) 36 ## of the same size (for compatibility)
37 37
38 function [rx, ry, rz] = griddata (x, y, z, xi, yi, method) 38 function [rx, ry, rz] = griddata (x, y, z, xi, yi, method)
39 39
40 if (nargin == 5) 40 if (nargin == 5)
41 method = "linear"; 41 method = "linear";
42 endif 42 endif
43 if (nargin < 5 || nargin > 7) 43 if (nargin < 5 || nargin > 7)
44 print_usage (); 44 print_usage ();