diff scripts/geometry/triplot.m @ 10540:952d4df5b686

Eliminate NaN*ones and Inf*ones constructs and just use Nan() and Inf()
author Rik <code@nomad.inbox5.com>
date Thu, 22 Apr 2010 14:03:47 -0700
parents 16f53d29049f
children 95c3e38098bf
line wrap: on
line diff
--- a/scripts/geometry/triplot.m
+++ b/scripts/geometry/triplot.m
@@ -37,11 +37,11 @@
   idx = tri(:, [1, 2, 3, 1]).';
   nt = size (tri, 1);
   if (nargout > 0)
-    h = plot ([x(idx); NaN*ones(1, nt)](:),
-	      [y(idx); NaN*ones(1, nt)](:), varargin{:});
+    h = plot ([x(idx); NaN(1, nt)](:),
+	      [y(idx); NaN(1, nt)](:), varargin{:});
   else
-    plot ([x(idx); NaN*ones(1, nt)](:),
-	  [y(idx); NaN*ones(1, nt)](:), varargin{:});
+    plot ([x(idx); NaN(1, nt)](:),
+	  [y(idx); NaN(1, nt)](:), varargin{:});
   endif
 endfunction