changeset 12638:b3a8fa6de43d octave-forge

Fixed bug
author rafavzqz
date Tue, 16 Jun 2015 09:50:44 +0000
parents 01b19426d64d
children 061284acaabd
files extra/nurbs/inst/nrbderiv.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/extra/nurbs/inst/nrbderiv.m	Tue Jun 16 07:52:10 2015 +0000
+++ b/extra/nurbs/inst/nrbderiv.m	Tue Jun 16 09:50:44 2015 +0000
@@ -220,7 +220,7 @@
   if (iscell (dnurbs2))
     dnurbs2 = [dnurbs2{:}];
   end
-  if (any (arrayfun(@(x) any(isnan(x.coefs(:)) | iscell(x.coefs(:))), dnurbs2)))
+  if (any (arrayfun(@(x) any(isnan(x.coefs(:)) | isinf(x.coefs(:))), dnurbs2)))
     warning (['The structure for the second derivative contains Inf and/or NaN coefficients, ' ...
         'probably due to low continuity at repeated knots. This should not affect the ' ...
         'computation of the second derivatives, except at those knots.'])