comparison scripts/plot/print.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 5d3a684236b0
children ae6b7ee0a733
comparison
equal deleted inserted replaced
14871:26c4ca9782b0 14872:c2dbdeaa25df
362 props(end+1).h = h(n); 362 props(end+1).h = h(n);
363 props(end).name = color_props{c}; 363 props(end).name = color_props{c};
364 props(end).value = {get(h(n), color_props{c})}; 364 props(end).value = {get(h(n), color_props{c})};
365 if (isnumeric (rgb)) 365 if (isnumeric (rgb))
366 ## convert RGB color to RGB gray scale 366 ## convert RGB color to RGB gray scale
367 xfer = repmat ([0.30, 0.59, 0.11], size (rgb, 1), 1); 367 xfer = repmat ([0.30, 0.59, 0.11], rows (rgb), 1);
368 ggg = repmat (sum (xfer .* rgb, 2), 1, 3); 368 ggg = repmat (sum (xfer .* rgb, 2), 1, 3);
369 set (h(n), color_props{c}, ggg); 369 set (h(n), color_props{c}, ggg);
370 endif 370 endif
371 endif 371 endif
372 endfor 372 endfor