Mercurial > hg > octave-nkf
changeset 17021:154899fa42e3
trisurf.m: Fix incorrect delaunay syntax in %!demo blocks
* scripts/plot/trisurf.m: Fix incorrect delaunay syntax in %!demo blocks
author | Rik <rik@octave.org> |
---|---|
date | Fri, 19 Jul 2013 17:14:26 -0700 |
parents | 960ac70ac8f3 |
children | ddc62f0c7a35 |
files | scripts/plot/trisurf.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;