comparison scripts/plot/tetramesh.m @ 14872:c2dbdeaa25df

maint: use rows() and columns() to clarify m-files. * gradient.m, interp1q.m, rat.m, tsearchn.m, image.m, imwrite.m, area.m, contourc.m, hist.m, isocolors.m, isonormals.m, meshz.m, print.m, __bar__.m, __go_draw_axes__.m, __interp_cube__.m, __marching_cube__.m, __patch__.m, __print_parse_opts__.m, __quiver__.m, rose.m, shrinkfaces.m, stairs.m, surfnorm.m, tetramesh.m, text.m, deconv.m, spline.m, intersect.m, setdiff.m, setxor.m, union.m, periodogram.m, pcg.m, perms.m: Replace size (x,1) with rows (x) and size(x,2) with columns(x).
author Rik <octave@nomad.inbox5.com>
date Tue, 17 Jul 2012 13:34:19 -0700
parents fd3acd55dd42
children ddac88d32d6a
comparison
equal deleted inserted replaced
14871:26c4ca9782b0 14872:c2dbdeaa25df
68 68
69 size_T = rows (T); 69 size_T = rows (T);
70 colmap = colormap (); 70 colmap = colormap ();
71 71
72 if (length (reg) < 3) 72 if (length (reg) < 3)
73 size_colmap = size (colmap, 1); 73 size_colmap = rows (colmap);
74 C = mod ((1:size_T)' - 1, size_colmap) + 1; 74 C = mod ((1:size_T)' - 1, size_colmap) + 1;
75 if (size_T < size_colmap && size_T > 1) 75 if (size_T < size_colmap && size_T > 1)
76 ## expand to the available range of colors 76 ## expand to the available range of colors
77 C = floor ((C - 1) * (size_colmap - 1) / (size_T - 1)) + 1; 77 C = floor ((C - 1) * (size_colmap - 1) / (size_T - 1)) + 1;
78 endif 78 endif