Mercurial > octave
diff scripts/testfun/private/dump_demos.m @ 30236:628f26e122d9
maint: use rows() or columns() instead of size(__, 1 | 2) for clarity.
* ccolamd.cc, colamd.cc, Map.m, material.m, isocolors.m, isonormals.m,
isosurface.m, light.m, reducepatch.m, reducevolume.m, movfun.m, ilu.m,
__alltohandles__.m, dump_demos.m, mk-sparse-tst.sh:
Use rows() or columns() instead of size(__, 1 | 2) for clarity.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 11 Oct 2021 20:09:59 -0700 |
parents | 7854d5752dd2 |
children | 796f54d4ddbf |
line wrap: on
line diff
--- a/scripts/testfun/private/dump_demos.m Sat Oct 09 13:48:40 2021 +0200 +++ b/scripts/testfun/private/dump_demos.m Mon Oct 11 20:09:59 2021 -0700 @@ -339,14 +339,14 @@ " style = 'profile'; " " end " " " -" idx = 1:size (cmap, 1); " +" idx = 1:rows (cmap); " " switch (lower (style)) " " case 'profile' " " htmp = plot (idx, cmap(:,1), 'r', ... " " idx, cmap(:,2), 'g', ... " " idx, cmap(:,3), 'b'); " " set (gca (), 'ytick', 0:0.1:1); " -" set (gca (), 'xlim', [0 size(cmap,1)]); " +" set (gca (), 'xlim', [0 rows(cmap)]); " " case 'composite' " " htmp = image (idx); " " set (gca, 'ytick', []); "