comparison scripts/geometry/griddatan.m @ 23084:ef4d915df748

maint: Merge stable to default.
author John W. Eaton <jwe@octave.org>
date Mon, 23 Jan 2017 14:27:48 -0500
parents 3a2b891d0b33 e9a0469dedd9
children 092078913d54
comparison
equal deleted inserted replaced
23081:7485462a6924 23084:ef4d915df748
107 %! x = [x;1,1;1,-1;-1,-1;-1,1]; 107 %! x = [x;1,1;1,-1;-1,-1;-1,1];
108 %! y = sin (2*sum (x.^2,2)); 108 %! y = sin (2*sum (x.^2,2));
109 %! zz = griddatan (x,y,xi,"nearest"); 109 %! zz = griddatan (x,y,xi,"nearest");
110 %! zz2 = griddata (x(:,1),x(:,2),y,xi(:,1),xi(:,2),"nearest"); 110 %! zz2 = griddata (x(:,1),x(:,2),y,xi(:,1),xi(:,2),"nearest");
111 %! assert (zz, zz2, 1e-10); 111 %! assert (zz, zz2, 1e-10);
112