comparison scripts/plot/private/__interp_cube__.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 abf384f5d243
comparison
equal deleted inserted replaced
14871:26c4ca9782b0 14872:c2dbdeaa25df
37 error ("__interp_cube__: X, Y, Z have wrong dimensions"); 37 error ("__interp_cube__: X, Y, Z have wrong dimensions");
38 endif 38 endif
39 if (size (val) != [length(x), length(y), length(z)]) 39 if (size (val) != [length(x), length(y), length(z)])
40 error ("__interp_cube__: VAL has wrong dimensions"); 40 error ("__interp_cube__: VAL has wrong dimensions");
41 endif 41 endif
42 if (size (v, 2) != 3) 42 if (columns (v) != 3)
43 error ( "v has to be N*3 matrix"); 43 error ( "v has to be N*3 matrix");
44 endif 44 endif
45 if (!ischar (req)) 45 if (!ischar (req))
46 error ("__interp_cube__: Invalid request parameter use 'values', 'normals' or 'normals8'"); 46 error ("__interp_cube__: Invalid request parameter use 'values', 'normals' or 'normals8'");
47 endif 47 endif