Mercurial > octave
changeset 22315:567c9d9228d4
isocaps.m: use size (..., 1) instead of rows in %!demos.
* isocaps.m: use size (..., 1) instead of rows in %!demos.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 16 Aug 2016 11:31:02 -0700 |
parents | a1840b139c37 |
children | b67a29a96056 |
files | scripts/plot/draw/isocaps.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/isocaps.m Tue Aug 16 11:23:49 2016 -0700 +++ b/scripts/plot/draw/isocaps.m Tue Aug 16 11:31:02 2016 -0700 @@ -381,15 +381,15 @@ %! fvc_xmin = isocaps (x, y, z, v, isoval, "xmin", "b"); %! patch (fvc_xmin, "FaceColor", "interp", "EdgeColor", "none", ... %! "FaceLighting", "gouraud", ... -%! "VertexNormals", repmat([-1 0 0], rows (fvc_xmin.vertices), 1)); +%! "VertexNormals", repmat([-1 0 0], size (fvc_xmin.vertices, 1), 1)); %! fvc_ymin = isocaps (x, y, z, v, isoval, "ymin", "b"); %! patch (fvc_ymin, "FaceColor", "interp", "EdgeColor", "none", ... %! "FaceLighting", "gouraud", ... -%! "VertexNormals", repmat([0 -1 0], rows (fvc_ymin.vertices), 1)); +%! "VertexNormals", repmat([0 -1 0], size (fvc_ymin.vertices, 1), 1)); %! fvc_zmax = isocaps (x, y, z, v, isoval, "zmax", "b"); %! patch (fvc_zmax, "FaceColor", "interp", "EdgeColor", "none", ... %! "FaceLighting", "gouraud", ... -%! "VertexNormals", repmat([0 -1 0], rows (fvc_zmax.vertices), 1)); +%! "VertexNormals", repmat([0 -1 0], size (fvc_zmax.vertices, 1), 1)); %! axis equal; %! light (); %! title ({"isocaps()", "sphere with 6 end-caps"});