# HG changeset patch # User Rik # Date 1374279266 25200 # Node ID 154899fa42e3f8de1af3a269059a177ecb6886ef # Parent 960ac70ac8f37b4cb9836b05637553b49375c03e trisurf.m: Fix incorrect delaunay syntax in %!demo blocks * scripts/plot/trisurf.m: Fix incorrect delaunay syntax in %!demo blocks diff --git a/scripts/plot/trisurf.m b/scripts/plot/trisurf.m --- a/scripts/plot/trisurf.m +++ b/scripts/plot/trisurf.m @@ -77,7 +77,7 @@ %! colormap ('default'); %! N = 31; %! [x, y] = meshgrid (1:N); -%! tri = delaunay (x, y); +%! tri = delaunay (x(:), y(:)); %! z = peaks (N); %! h = trisurf (tri, x, y, z, 'facecolor', 'interp'); %! axis tight; @@ -89,7 +89,7 @@ %! colormap ('default'); %! N = 31; %! [x, y] = meshgrid (1:N); -%! tri = delaunay (x, y); +%! tri = delaunay (x(:), y(:)); %! z = peaks (N); %! h = trisurf (tri, x, y, z, 'facecolor', 'flat'); %! axis tight;