comparison extra/nurbs/inst/nrbderiv.m @ 12638:b3a8fa6de43d octave-forge

Fixed bug
author rafavzqz
date Tue, 16 Jun 2015 09:50:44 +0000
parents 01b19426d64d
children 2a027badd794
comparison
equal deleted inserted replaced
12637:01b19426d64d 12638:b3a8fa6de43d
218 varargout{2} = dnurbs2; 218 varargout{2} = dnurbs2;
219 219
220 if (iscell (dnurbs2)) 220 if (iscell (dnurbs2))
221 dnurbs2 = [dnurbs2{:}]; 221 dnurbs2 = [dnurbs2{:}];
222 end 222 end
223 if (any (arrayfun(@(x) any(isnan(x.coefs(:)) | iscell(x.coefs(:))), dnurbs2))) 223 if (any (arrayfun(@(x) any(isnan(x.coefs(:)) | isinf(x.coefs(:))), dnurbs2)))
224 warning (['The structure for the second derivative contains Inf and/or NaN coefficients, ' ... 224 warning (['The structure for the second derivative contains Inf and/or NaN coefficients, ' ...
225 'probably due to low continuity at repeated knots. This should not affect the ' ... 225 'probably due to low continuity at repeated knots. This should not affect the ' ...
226 'computation of the second derivatives, except at those knots.']) 226 'computation of the second derivatives, except at those knots.'])
227 end 227 end
228 end 228 end