comparison scripts/set/union.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 f3d52523cde1
children 36dba9be680b
comparison
equal deleted inserted replaced
14871:26c4ca9782b0 14872:c2dbdeaa25df
63 [a, b] = validargs ("union", a, b, varargin{:}); 63 [a, b] = validargs ("union", a, b, varargin{:});
64 64
65 if (nargin == 2) 65 if (nargin == 2)
66 y = [a(:); b(:)]; 66 y = [a(:); b(:)];
67 na = numel (a); nb = numel (b); 67 na = numel (a); nb = numel (b);
68 if (size (a, 1) == 1 || size (b, 1) == 1) 68 if (rows (a) == 1 || rows (b) == 1)
69 y = y.'; 69 y = y.';
70 endif 70 endif
71 else 71 else
72 y = [a; b]; 72 y = [a; b];
73 na = rows (a); nb = rows (b); 73 na = rows (a); nb = rows (b);